C# Class Qowaiv.Data.SvoParameter

Factory class for creating database parameters.
Datei anzeigen Open project: Corniel/Qowaiv

Public Methods

Method Description
CreateForSql ( string parameterName, object value ) : SqlParameter

Creates a SqlParameter based on the single value object.

Private Methods

Method Description
GetCast ( Type sourceType, SingleValueObjectAttribute attr ) : MethodInfo

Gets the cast needed for casting to the database type.

IsDbNullValue ( object value, Type sourceType, SingleValueObjectAttribute attr ) : bool

Returns true if the value should be represented by a DBNull.Value, otherwise false.

Method Details

CreateForSql() public static method

Creates a SqlParameter based on the single value object.
public static CreateForSql ( string parameterName, object value ) : SqlParameter
parameterName string /// The name of the parameter to map. ///
value object /// An that is the value of the . ///
return System.Data.SqlClient.SqlParameter