Table of Contents

Class StorageColumn

Namespace
TimeCockpit.Data.DataModel
Assembly
TimeCockpit.Data.dll

Provides information about how to store values in the database.

public class StorageColumn
Inheritance
Object
StorageColumn
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()

Constructors

StorageColumn()

Initializes a new instance of the StorageColumn class.

public StorageColumn()

StorageColumn(String, Type, Int32, Byte, Byte, Ownership, ModelEntityBase, Boolean)

Initializes a new instance of the StorageColumn class.

public StorageColumn(string name, Type dataType, int size, byte precision, byte scale, Ownership ownership, ModelEntityBase relationTarget, bool isLocalized)

Parameters

name String

Name of the column.

dataType Type

.NET data type of the column

size Int32

The length of the column.

precision Byte

The total number of digits to the left and right of the decimal point.

scale Byte

The total number of decimal places.

ownership Ownership

The parent model entity the property/relation to which this storage column belongs to

relationTarget ModelEntityBase

Target of the foreign key.

isLocalized Boolean

Indicates whether the property represented by the storage column is localized or not.

StorageColumn(String, Type, Ownership, ModelEntityBase, Boolean)

Initializes a new instance of the StorageColumn class.

public StorageColumn(string name, Type dataType, Ownership ownership, ModelEntityBase relationTarget, bool isLocalized = false)

Parameters

name String

Name of the column.

dataType Type

.NET data type of the column

ownership Ownership

The parent model entity the property/relation to which this storage column belongs to

relationTarget ModelEntityBase

Target of the foreign key.

isLocalized Boolean

Indicates whether the property represented by the storage column is localized or not.

Properties

DataType

Gets the .NET data type of the column.

public Type DataType { get; }

Property Value

Type

EntityObjectProperties

Gets a list of properties, that provide access to the value of the column.

public Collection<string> EntityObjectProperties { get; }

Property Value

Collection<String>

Remarks

For properties (see ModelProperty) EntityObjectProperties contains a single string with the property's name.

For relations (see Relation) EntityObjectProperties contains a single string with the relation's name.

IsApplicationSpecificElement

Gets a value indicating whether the storagecolumn represents a application specific element.

public bool IsApplicationSpecificElement { get; }

Property Value

Boolean

IsBinary

Gets a value indicating whether the specified .NET type is of type byte []

public bool IsBinary { get; }

Property Value

Boolean

IsBoolean

Gets a value indicating whether the specified .NET type is of type bool.

public bool IsBoolean { get; }

Property Value

Boolean

IsDateTime

Gets a value indicating whether the specified .NET type is of type DateTime.

public bool IsDateTime { get; }

Property Value

Boolean

IsDecimal

Gets a value indicating whether the specified .NET type is of type decimal.

public bool IsDecimal { get; }

Property Value

Boolean

IsGuid

Gets a value indicating whether the specified .NET type is of type Guid.

public bool IsGuid { get; }

Property Value

Boolean

IsLocalized

Gets a value indicating whether this instance is localized.

public bool IsLocalized { get; }

Property Value

Boolean

true if this instance is localized; otherwise, false.

IsMaxSize

Gets a value indicating whether the specified size is the max size.

public bool IsMaxSize { get; }

Property Value

Boolean

IsRelation

Gets a value indicating whether the storage column is a relation or not.

public bool IsRelation { get; }

Property Value

Boolean

IsStoredOnBlobStorage

Gets or sets a value indicating whether the column is stored on blob storage

public bool IsStoredOnBlobStorage { get; set; }

Property Value

Boolean

IsString

Gets a value indicating whether the specified .NET type is of type string.

public bool IsString { get; }

Property Value

Boolean

IsSystemElement

Gets a value indicating whether the storagecolumn represents a system element.

public bool IsSystemElement { get; }

Property Value

Boolean

IsUserElement

Gets a value indicating whether the storagecolumn represents a user specific element.

public bool IsUserElement { get; }

Property Value

Boolean

Name

Gets the name of the column.

public string Name { get; }

Property Value

String

Ownership

Gets the parent ownership of the the property/relation to which this storage column belongs to

public Ownership Ownership { get; }

Property Value

Ownership

Precision

Gets or sets the total number of digits to the left and right of the decimal point.

public byte Precision { get; set; }

Property Value

Byte

RelationTarget

Gets the target of the foreign key.

public ModelEntityBase RelationTarget { get; }

Property Value

ModelEntityBase

Scale

Gets or sets the total number of decimal places.

public byte Scale { get; set; }

Property Value

Byte

Size

Gets or sets the length of the column.

public int Size { get; set; }

Property Value

Int32