ISqlParameterFactory<TParameter> Interface
Factory for creating strongly-typed SQL parameters from name/value pairs.
public interface ISqlParameterFactory<TParameter> where TParameter : HAKOM.Persistence.Sql.Net.Api.ISqlParameterType parameters
Section titled “Type parameters”TParameter
The SQL parameter type this factory produces.
Derived
↳ SqlParameterFactory<TParameter>
Properties
Section titled “Properties”ISqlParameterFactory<TParameter>.ParameterPrefix Property
Section titled “ISqlParameterFactory<TParameter>.ParameterPrefix Property”Gets the prefix character(s) prepended to parameter names (e.g. @ for
SQL Server/PostgreSQL or : for Oracle).
string ParameterPrefix { get; }Property Value
Section titled “Property Value”Methods
Section titled “Methods”ISqlParameterFactory<TParameter>.Create<TValue>(string, TValue) Method
Section titled “ISqlParameterFactory<TParameter>.Create<TValue>(string, TValue) Method”Creates a new SQL parameter with the given name and value.
TParameter Create<TValue>(string name, TValue value);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 provider-specific prefix.
value TValue
The value to bind to the parameter.
Returns
Section titled “Returns”TParameter
A new TParameter instance ready to be added to a command.
Was this page helpful?Thanks for your feedback!