Skip to main content

EnumConverter

Assembly: ServiceStack.OrmLite.dll
View Source
Declaration
public class EnumConverter : StringConverter, IOrmLiteConverter, IHasColumnDefinitionLength

Inherited Properties

ColumnDefinition

View Source
Declaration
public override string ColumnDefinition { get; }

MaxColumnDefinition

View Source
Declaration
public virtual string MaxColumnDefinition { get; set; }

MaxVarCharLength

View Source
Declaration
public virtual int MaxVarCharLength { get; }

StringLength

View Source
Declaration
public int StringLength { get; set; }

UseUnicode

View Source
Declaration
public bool UseUnicode { get; set; }

Methods

GetEnumKind(Type)

View Source
Declaration
public static EnumKind GetEnumKind(Type enumType)
Returns

ServiceStack.OrmLite.Converters.EnumKind

Parameters
TypeName
TypeenumType

InitDbParam(IDbDataParameter, Type)

View Source
Declaration
public override void InitDbParam(IDbDataParameter p, Type fieldType)
Parameters
TypeName
IDbDataParameterp
TypefieldType

ToQuotedString(Type, Object)

View Source
Declaration
public override string ToQuotedString(Type fieldType, object value)
Returns

System.String

Parameters
TypeName
TypefieldType
System.Objectvalue

ToDbValue(Type, Object)

View Source
Declaration
public override object ToDbValue(Type fieldType, object value)
Returns

System.Object

Parameters
TypeName
TypefieldType
System.Objectvalue

ToCharValue(Object)

View Source
Declaration
public static char ToCharValue(object value)
Returns

System.Char

Parameters
TypeName
System.Objectvalue

IsIntEnum(Type)

View Source
Declaration
public static bool IsIntEnum(Type fieldType)
Returns

System.Boolean

Parameters
TypeName
TypefieldType

HasEnumMembers(Type)

View Source
Declaration
public static bool HasEnumMembers(Type enumType)
Returns

System.Boolean

Parameters
TypeName
TypeenumType

FromDbValue(Type, Object)

View Source
Declaration
public override object FromDbValue(Type fieldType, object value)
Returns

System.Object

Parameters
TypeName
TypefieldType
System.Objectvalue

Inherited Methods

FromDbValue(Type, Object)

View Source
Declaration
public override object FromDbValue(Type fieldType, object value)
Returns

System.Object

Parameters
TypeName
TypefieldType
System.Objectvalue

GetColumnDefinition(Nullable<Int32>)

View Source
Declaration
public virtual string GetColumnDefinition(int? stringLength)
Returns

System.String

Parameters
TypeName
System.Nullable<System.Int32>stringLength

InitDbParam(IDbDataParameter, Type)

View Source
Declaration
public override void InitDbParam(IDbDataParameter p, Type fieldType)
Parameters
TypeName
IDbDataParameterp
TypefieldType

Implements