C# 클래스 Shaolinq.Persistence.SqlDataType

파일 보기 프로젝트 열기: tumtumtum/Shaolinq 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
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