C# Class Shaolinq.Persistence.SqlDataType

Mostra file Open project: tumtumtum/Shaolinq Class Usage Examples

Protected Properties

Property Type Description
IsDbNullMethod System.Reflection.MethodInfo
constraintDefaultsConfiguration ConstraintDefaultsConfiguration

Public Methods

Method Description
ConvertForSql ( object value ) : TypedValue

Converts the given value for serializing to SQL. The default implementation performs no conversion.

ConvertFromSql ( object value ) : object

Converts a value from SQL to a .NET equivalent. The default implementation uses Convert.ChangeType(object, Type) and performs DBNull conversion

GetReadExpression ( Expression dataReader, int ordinal ) : Expression

Gets an expression to perform reading of a column.

GetSqlName ( PropertyDescriptor propertyDescriptor ) : string

Gets the SQL type name for the given property.

GetSqlName ( PropertyDescriptor propertyDescriptor, ConstraintDefaultsConfiguration constraintDefaults ) : string

Gets the SQL type name for the given property.

IsNullExpression ( Expression dataReader, int ordinal ) : Expression

Protected Methods

Method Description
SqlDataType ( ConstraintDefaultsConfiguration constraintDefaultsConfiguration, Type supportedType ) : System
SqlDataType ( ConstraintDefaultsConfiguration constraintDefaultsConfiguration, Type supportedType, bool isUserDefinedType ) : System

Method Details

ConvertForSql() public method

Converts the given value for serializing to SQL. The default implementation performs no conversion.
public ConvertForSql ( object value ) : TypedValue
value object The value
return TypedValue

ConvertFromSql() public method

Converts a value from SQL to a .NET equivalent. The default implementation uses Convert.ChangeType(object, Type) and performs DBNull conversion
public ConvertFromSql ( object value ) : object
value object The value to convert
return object

GetReadExpression() public abstract method

Gets an expression to perform reading of a column.
public abstract GetReadExpression ( Expression dataReader, int ordinal ) : Expression
dataReader System.Linq.Expressions.Expression The parameter that references the
ordinal int The parameter that contains the ordinal of the column to read
return System.Linq.Expressions.Expression

GetSqlName() public method

Gets the SQL type name for the given property.
public GetSqlName ( PropertyDescriptor propertyDescriptor ) : string
propertyDescriptor PropertyDescriptor The property whose return type is to be serialized
return string

GetSqlName() public abstract method

Gets the SQL type name for the given property.
public abstract GetSqlName ( PropertyDescriptor propertyDescriptor, ConstraintDefaultsConfiguration constraintDefaults ) : string
propertyDescriptor PropertyDescriptor
constraintDefaults ConstraintDefaultsConfiguration
return string

IsNullExpression() public method

public IsNullExpression ( Expression dataReader, int ordinal ) : Expression
dataReader System.Linq.Expressions.Expression
ordinal int
return System.Linq.Expressions.Expression

SqlDataType() protected method

protected SqlDataType ( ConstraintDefaultsConfiguration constraintDefaultsConfiguration, Type supportedType ) : System
constraintDefaultsConfiguration ConstraintDefaultsConfiguration
supportedType System.Type
return System

SqlDataType() protected method

protected SqlDataType ( ConstraintDefaultsConfiguration constraintDefaultsConfiguration, Type supportedType, bool isUserDefinedType ) : System
constraintDefaultsConfiguration ConstraintDefaultsConfiguration
supportedType System.Type
isUserDefinedType bool
return System

Property Details

IsDbNullMethod protected_oe static_oe property

protected static MethodInfo,System.Reflection IsDbNullMethod
return System.Reflection.MethodInfo

constraintDefaultsConfiguration protected_oe property

protected ConstraintDefaultsConfiguration constraintDefaultsConfiguration
return ConstraintDefaultsConfiguration