Skip to main content

Definition

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

Syntax

Summary

Contains metadata about an entity type for database operations.

Constructors

.ctor

Initializes a new instance of the EntityMetadata class.

Syntax

Parameters

.ctor Inherited

Inherited from object

Syntax

Properties

Columns

Gets the list of columns in the entity.

Syntax

Property Value

Type: System.Collections.Generic.IReadOnlyList<CloudNimble.BlazorEssentials.TursoDb.Schema.ColumnMetadata>

EntityType

Gets the entity type.

Syntax

Property Value

Type: System.Type

NonKeyColumns

Gets the columns that are not the primary key.

Syntax

Property Value

Type: System.Collections.Generic.IReadOnlyList<CloudNimble.BlazorEssentials.TursoDb.Schema.ColumnMetadata>

PrimaryKey

Gets the primary key column, or null if none.

Syntax

Property Value

Type: CloudNimble.BlazorEssentials.TursoDb.Schema.ColumnMetadata?

TableName

Gets the table name in the database.

Syntax

Property Value

Type: string

Methods

Equals Inherited Virtual

Inherited from object

Syntax

Parameters

Returns

Type: bool

Equals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

GetHashCode Inherited Virtual

Inherited from object

Syntax

Returns

Type: int

GetInsertData

Gets the column values for insert, excluding auto-increment primary keys with default values.

Syntax

Parameters

Returns

Type: (string, string, object?[]) Column names, placeholders, and parameter values.

GetPrimaryKeyValue

Gets the primary key value from an entity.

Syntax

Parameters

Returns

Type: object? The primary key value.

Exceptions

GetType Inherited

Inherited from object

Syntax

Returns

Type: System.Type

GetUpdateData

Gets the column values for update, excluding the primary key.

Syntax

Parameters

Returns

Type: (string, object?[]) SET clause and parameter values including the primary key.

MemberwiseClone Inherited

Inherited from object

Syntax

Returns

Type: object

ReferenceEquals Inherited

Inherited from object

Syntax

Parameters

Returns

Type: bool

SetPrimaryKeyValue

Sets the primary key value on an entity.

Syntax

Parameters

Exceptions

ToString Inherited Virtual

Inherited from object

Syntax

Returns

Type: string?