Skip to main content

FieldDefinition

Assembly: ServiceStack.OrmLite.dll
View Source
Declaration
public class FieldDefinition : object

Properties

ModelDef

View Source
Declaration
public ModelDefinition ModelDef { get; set; }

Name

View Source
Declaration
public string Name { get; set; }

Alias

View Source
Declaration
public string Alias { get; set; }

FieldName

View Source
Declaration
public string FieldName { get; }

FieldType

View Source
Declaration
public Type FieldType { get; set; }

FieldTypeDefaultValue

View Source
Declaration
public object FieldTypeDefaultValue { get; set; }

TreatAsType

View Source
Declaration
public Type TreatAsType { get; set; }

ColumnType

View Source
Declaration
public Type ColumnType { get; }

PropertyInfo

View Source
Declaration
public PropertyInfo PropertyInfo { get; set; }

IsPrimaryKey

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

AutoIncrement

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

AutoId

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

IsNullable

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

IsIndexed

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

IsUniqueIndex

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

IsClustered

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

IsNonClustered

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

IndexName

View Source
Declaration
public string IndexName { get; set; }

IsRowVersion

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

FieldLength

View Source
Declaration
public int? FieldLength { get; set; }

Scale

View Source
Declaration
public int? Scale { get; set; }

DefaultValue

View Source
Declaration
public string DefaultValue { get; set; }

CheckConstraint

View Source
Declaration
public string CheckConstraint { get; set; }

IsUniqueConstraint

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

Order

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

ForeignKey

View Source
Declaration
public ForeignKeyConstraint ForeignKey { get; set; }

GetValueFn

View Source
Declaration
public GetMemberDelegate GetValueFn { get; set; }

SetValueFn

View Source
Declaration
public SetMemberDelegate SetValueFn { get; set; }

Sequence

View Source
Declaration
public string Sequence { get; set; }

IsComputed

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

IsPersisted

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

ComputeExpression

View Source
Declaration
public string ComputeExpression { get; set; }

CustomSelect

View Source
Declaration
public string CustomSelect { get; set; }

CustomInsert

View Source
Declaration
public string CustomInsert { get; set; }

CustomUpdate

View Source
Declaration
public string CustomUpdate { get; set; }

RequiresAlias

View Source
Declaration
public bool RequiresAlias { get; }

BelongToModelName

View Source
Declaration
public string BelongToModelName { get; set; }

IsReference

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

FieldReference

View Source
Declaration
public FieldReference FieldReference { get; set; }

CustomFieldDefinition

View Source
Declaration
public string CustomFieldDefinition { get; set; }

IsRefType

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

IgnoreOnUpdate

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

IgnoreOnInsert

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

ReturnOnInsert

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

Methods

GetValue(Object)

View Source
Declaration
public object GetValue(object instance)
Returns

System.Object

Parameters
TypeName
System.Objectinstance

SetValue(Object, Object)

View Source
Declaration
public void SetValue(object instance, object value)
Parameters
TypeName
System.Objectinstance
System.Objectvalue

GetQuotedName(IOrmLiteDialectProvider)

View Source
Declaration
public string GetQuotedName(IOrmLiteDialectProvider dialectProvider)
Returns

System.String

Parameters
TypeName
ServiceStack.OrmLite.IOrmLiteDialectProviderdialectProvider

GetQuotedValue(Object, IOrmLiteDialectProvider)

View Source
Declaration
public string GetQuotedValue(object fromInstance, IOrmLiteDialectProvider dialect = null)
Returns

System.String

Parameters
TypeName
System.ObjectfromInstance
ServiceStack.OrmLite.IOrmLiteDialectProviderdialect

ToString()

View Source
Declaration
public override string ToString()
Returns

System.String

ShouldSkipInsert()

View Source
Declaration
public bool ShouldSkipInsert()
Returns

System.Boolean

ShouldSkipUpdate()

View Source
Declaration
public bool ShouldSkipUpdate()
Returns

System.Boolean

ShouldSkipDelete()

View Source
Declaration
public bool ShouldSkipDelete()
Returns

System.Boolean

IsSelfRefField(FieldDefinition)

View Source
Declaration
public bool IsSelfRefField(FieldDefinition fieldDef)
Returns

System.Boolean

Parameters
TypeName
ServiceStack.OrmLite.FieldDefinitionfieldDef

IsSelfRefField(String)

View Source
Declaration
public bool IsSelfRefField(string name)
Returns

System.Boolean

Parameters
TypeName
System.Stringname

Clone(Action<FieldDefinition>)

View Source
Declaration
public FieldDefinition Clone(Action<FieldDefinition> modifier = null)
Returns

ServiceStack.OrmLite.FieldDefinition

Parameters
TypeName
Action<ServiceStack.OrmLite.FieldDefinition>modifier