Definition
Assembly: CloudNimble.BlazorEssentials.TursoDb.dll Namespace: CloudNimble.BlazorEssentials.TursoDb Inheritance: System.AttributeSyntax
Summary
Specifies the column name and optional type for a property. If not specified, the property name is used as the column name.Constructors
.ctor
Initializes a new instance of the ColumnAttribute class.Syntax
Parameters
| Name | Type | Description |
|---|---|---|
name | string | The column name in the database. |
Exceptions
| Exception | Description |
|---|---|
ArgumentException | Thrown when name is null or whitespace. |
Properties
DefaultValue
Gets or sets the default value for the column.Syntax
Property Value
Type:string?
Name
Gets the column name in the database.Syntax
Property Value
Type:string
Nullable
Gets or sets whether the column allows NULL values. If not specified, nullability is inferred from the property type.Syntax
Property Value
Type:System.Nullable<bool>?
Type
Gets or sets the SQLite column type (e.g., “TEXT”, “INTEGER”, “REAL”, “BLOB”). If not specified, the type is inferred from the property type.Syntax
Property Value
Type:string?