Skip to content
Documentation

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>

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);

TValue

The CLR type of the parameter value (typically System.Data.DataTable).

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.

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);

TValue

The CLR type of the parameter value.

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.

ISqlServerParameter
A new ISqlServerParameter instance.

© 2026 Volue.Version v0.6.38017 November 2026