C# Класс Shaolinq.Persistence.SqlDataType

Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
IsDbNullMethod System.Reflection.MethodInfo
constraintDefaultsConfiguration ConstraintDefaultsConfiguration

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
SqlDataType ( ConstraintDefaultsConfiguration constraintDefaultsConfiguration, Type supportedType ) : System
SqlDataType ( ConstraintDefaultsConfiguration constraintDefaultsConfiguration, Type supportedType, bool isUserDefinedType ) : System

Описание методов

ConvertForSql() публичный Метод

Converts the given value for serializing to SQL. The default implementation performs no conversion.
public ConvertForSql ( object value ) : TypedValue
value object The value
Результат TypedValue

ConvertFromSql() публичный Метод

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
Результат object

GetReadExpression() публичный абстрактный Метод

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
Результат System.Linq.Expressions.Expression

GetSqlName() публичный Метод

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
Результат string

GetSqlName() публичный абстрактный Метод

Gets the SQL type name for the given property.
public abstract GetSqlName ( PropertyDescriptor propertyDescriptor, ConstraintDefaultsConfiguration constraintDefaults ) : string
propertyDescriptor PropertyDescriptor
constraintDefaults ConstraintDefaultsConfiguration
Результат string

IsNullExpression() публичный Метод

public IsNullExpression ( Expression dataReader, int ordinal ) : Expression
dataReader System.Linq.Expressions.Expression
ordinal int
Результат System.Linq.Expressions.Expression

SqlDataType() защищенный Метод

protected SqlDataType ( ConstraintDefaultsConfiguration constraintDefaultsConfiguration, Type supportedType ) : System
constraintDefaultsConfiguration ConstraintDefaultsConfiguration
supportedType System.Type
Результат System

SqlDataType() защищенный Метод

protected SqlDataType ( ConstraintDefaultsConfiguration constraintDefaultsConfiguration, Type supportedType, bool isUserDefinedType ) : System
constraintDefaultsConfiguration ConstraintDefaultsConfiguration
supportedType System.Type
isUserDefinedType bool
Результат System

Описание свойств

IsDbNullMethod защищенное статическое свойство

protected static MethodInfo,System.Reflection IsDbNullMethod
Результат System.Reflection.MethodInfo

constraintDefaultsConfiguration защищенное свойство

protected ConstraintDefaultsConfiguration constraintDefaultsConfiguration
Результат ConstraintDefaultsConfiguration