Skip to main content

Definition

Assembly: CloudNimble.BlazorEssentials.TursoDb.dll Namespace: CloudNimble.BlazorEssentials.TursoDb.Schema Inheritance: System.Object

Syntax

CloudNimble.BlazorEssentials.TursoDb.Schema.ColumnMetadata

Summary

Contains metadata about a column in a table.

Constructors

.ctor

Initializes a new instance of the ColumnMetadata class.

Syntax

public ColumnMetadata(System.Reflection.PropertyInfo property, string columnName, string sqliteType, bool isPrimaryKey, bool autoIncrement, bool isNullable, string defaultValue, bool hasIndex, bool isUniqueIndex, string indexName)

Parameters

NameTypeDescription
propertySystem.Reflection.PropertyInfo-
columnNamestring-
sqliteTypestring-
isPrimaryKeybool-
autoIncrementbool-
isNullablebool-
defaultValuestring?-
hasIndexbool-
isUniqueIndexbool-
indexNamestring?-

.ctor Inherited

Inherited from object

Syntax

public Object()

Properties

AutoIncrement

Gets whether the primary key auto-increments.

Syntax

public bool AutoIncrement { get; }

Property Value

Type: bool

ColumnName

Gets the column name in the database.

Syntax

public string ColumnName { get; }

Property Value

Type: string

DefaultValue

Gets the default value for the column, or null if none.

Syntax

public string DefaultValue { get; }

Property Value

Type: string?

HasIndex

Gets whether this column has an index.

Syntax

public bool HasIndex { get; }

Property Value

Type: bool

IndexName

Gets the index name, if any.

Syntax

public string IndexName { get; }

Property Value

Type: string?

IsNullable

Gets whether the column allows NULL values.

Syntax

public bool IsNullable { get; }

Property Value

Type: bool

IsPrimaryKey

Gets whether this column is the primary key.

Syntax

public bool IsPrimaryKey { get; }

Property Value

Type: bool

IsUniqueIndex

Gets whether the index is unique.

Syntax

public bool IsUniqueIndex { get; }

Property Value

Type: bool

Property

Gets the property info for this column.

Syntax

public System.Reflection.PropertyInfo Property { get; }

Property Value

Type: System.Reflection.PropertyInfo

SqliteType

Gets the SQLite type for this column.

Syntax

public string SqliteType { get; }

Property Value

Type: string

Methods

Equals Inherited Virtual

Inherited from object

Syntax

public virtual bool Equals(object obj)

Parameters

NameTypeDescription
objobject?-

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

public static bool Equals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

public virtual int GetHashCode()

Returns

Type: int

GetType Inherited

Inherited from object

Syntax

public System.Type GetType()

Returns

Type: System.Type

GetValue

Gets the value of this column from an entity instance.

Syntax

public object GetValue(object entity)

Parameters

NameTypeDescription
entityobjectThe entity instance.

Returns

Type: object? The column value.

MemberwiseClone Inherited

Inherited from object

Syntax

protected internal object MemberwiseClone()

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

public static bool ReferenceEquals(object objA, object objB)

Parameters

NameTypeDescription
objAobject?-
objBobject?-

Returns

Type: bool

SetValue

Sets the value of this column on an entity instance.

Syntax

public void SetValue(object entity, object value)

Parameters

NameTypeDescription
entityobjectThe entity instance.
valueobject?The value to set.

ToString Inherited Virtual

Inherited from object

Syntax

public virtual string ToString()

Returns

Type: string?