C# Class Shaolinq.Persistence.SqlDataType

Afficher le fichier Open project: tumtumtum/Shaolinq Class Usage Examples

Protected Properties

Свойство Type Description
IsDbNullMethod System.Reflection.MethodInfo
constraintDefaultsConfiguration ConstraintDefaultsConfiguration

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
SqlDataType ( ConstraintDefaultsConfiguration constraintDefaultsConfiguration, Type supportedType ) : System
SqlDataType ( ConstraintDefaultsConfiguration constraintDefaultsConfiguration, Type supportedType, bool isUserDefinedType ) : System

Method Details

ConvertForSql() public méthode

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

ConvertFromSql() public méthode

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
Résultat object

GetReadExpression() public abstract méthode

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
Résultat System.Linq.Expressions.Expression

GetSqlName() public méthode

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
Résultat string

GetSqlName() public abstract méthode

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

IsNullExpression() public méthode

public IsNullExpression ( Expression dataReader, int ordinal ) : Expression
dataReader System.Linq.Expressions.Expression
ordinal int
Résultat System.Linq.Expressions.Expression

SqlDataType() protected méthode

protected SqlDataType ( ConstraintDefaultsConfiguration constraintDefaultsConfiguration, Type supportedType ) : System
constraintDefaultsConfiguration ConstraintDefaultsConfiguration
supportedType System.Type
Résultat System

SqlDataType() protected méthode

protected SqlDataType ( ConstraintDefaultsConfiguration constraintDefaultsConfiguration, Type supportedType, bool isUserDefinedType ) : System
constraintDefaultsConfiguration ConstraintDefaultsConfiguration
supportedType System.Type
isUserDefinedType bool
Résultat System

Property Details

IsDbNullMethod protected_oe static_oe property

protected static MethodInfo,System.Reflection IsDbNullMethod
Résultat System.Reflection.MethodInfo

constraintDefaultsConfiguration protected_oe property

protected ConstraintDefaultsConfiguration constraintDefaultsConfiguration
Résultat ConstraintDefaultsConfiguration