ISqlServerParameterFactory Interface
Factory for creating ISqlServerParameter instances, extending the base ISqlParameterFactory<TParameter> with SQL Server-specific overloads for typed and table-valued parameters.
public interface ISqlServerParameterFactory : HAKOM.Persistence.Sql.Net.Api.ISqlParameterFactory<HAKOM.Persistence.Sql.SqlServer.Net.Api.ISqlServerParameter>Implements HAKOM.Persistence.Sql.Net.Api.ISqlParameterFactory<ISqlServerParameter>
Methods
Section titled “Methods”ISqlServerParameterFactory.Create<TValue>(string, TValue, string) Method
Section titled “ISqlServerParameterFactory.Create<TValue>(string, TValue, string) Method”Creates a SQL Server table-valued parameter from a System.Data.DataTable.
HAKOM.Persistence.Sql.SqlServer.Net.Api.ISqlServerParameter Create<TValue>(string name, TValue value, string dataTableName);Type parameters
Section titled “Type parameters”TValue
The CLR type of the parameter value (typically System.Data.DataTable).
Parameters
Section titled “Parameters”name System.String
The parameter name, with or without the @ prefix.
value TValue
The value to bind to the parameter.
dataTableName System.String
The SQL Server user-defined table type name.
Returns
Section titled “Returns”ISqlServerParameter
A new ISqlServerParameter instance configured as a table-valued parameter.
ISqlServerParameterFactory.Create<TValue>(string, TValue, SqlDbType, int) Method
Section titled “ISqlServerParameterFactory.Create<TValue>(string, TValue, SqlDbType, int) Method”Creates a SQL Server parameter with an explicit System.Data.SqlDbType and size.
HAKOM.Persistence.Sql.SqlServer.Net.Api.ISqlServerParameter Create<TValue>(string name, TValue value, System.Data.SqlDbType dbType, int size);Type parameters
Section titled “Type parameters”TValue
The CLR type of the parameter value.
Parameters
Section titled “Parameters”name System.String
The parameter name, with or without the @ prefix.
value TValue
The value to bind to the parameter.
dbType System.Data.SqlDbType
The SQL Server data type for the parameter.
size System.Int32
The maximum size of the parameter value in bytes or characters.
Returns
Section titled “Returns”ISqlServerParameter
A new ISqlServerParameter instance.