Definition
Assembly: CloudNimble.BlazorEssentials.TursoDb.dll Namespace: CloudNimble.BlazorEssentials.TursoDb.Schema Inheritance: System.ObjectSyntax
Summary
Contains metadata about a column in a table.Constructors
.ctor
Initializes a new instance of the ColumnMetadata class.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
property | System.Reflection.PropertyInfo | - |
columnName | string | - |
sqliteType | string | - |
isPrimaryKey | bool | - |
autoIncrement | bool | - |
isNullable | bool | - |
defaultValue | string? | - |
hasIndex | bool | - |
isUniqueIndex | bool | - |
indexName | string? | - |
.ctor Inherited
Inherited from
objectSyntax
Properties
AutoIncrement
Gets whether the primary key auto-increments.Syntax
Property Value
Type:bool
ColumnName
Gets the column name in the database.Syntax
Property Value
Type:string
DefaultValue
Gets the default value for the column, or null if none.Syntax
Property Value
Type:string?
HasIndex
Gets whether this column has an index.Syntax
Property Value
Type:bool
IndexName
Gets the index name, if any.Syntax
Property Value
Type:string?
IsNullable
Gets whether the column allows NULL values.Syntax
Property Value
Type:bool
IsPrimaryKey
Gets whether this column is the primary key.Syntax
Property Value
Type:bool
IsUniqueIndex
Gets whether the index is unique.Syntax
Property Value
Type:bool
Property
Gets the property info for this column.Syntax
Property Value
Type:System.Reflection.PropertyInfo
SqliteType
Gets the SQLite type for this column.Syntax
Property Value
Type:string
Methods
Equals Inherited Virtual
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
obj | object? | - |
Returns
Type:bool
Equals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
GetHashCode Inherited Virtual
Inherited from
objectSyntax
Returns
Type:int
GetType Inherited
Inherited from
objectSyntax
Returns
Type:System.Type
GetValue
Gets the value of this column from an entity instance.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
entity | object | The entity instance. |
Returns
Type:object?
The column value.
MemberwiseClone Inherited
Inherited from
objectSyntax
Returns
Type:object
ReferenceEquals Inherited
Inherited from
objectSyntax
Parameters
| Name | Type | Description |
|---|---|---|
objA | object? | - |
objB | object? | - |
Returns
Type:bool
SetValue
Sets the value of this column on an entity instance.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
entity | object | The entity instance. |
value | object? | The value to set. |
ToString Inherited Virtual
Inherited from
objectSyntax
Returns
Type:string?