IDbPersistable

Ecng.Serialization

Interface for entities that can be persisted to a database.

プロパティ

Schema
public Schema Schema { get; }
value = iDbPersistable.Schema

Gets the database schema for this entity type.

メソッド

GetIdentity
public object GetIdentity()
result = iDbPersistable.GetIdentity()

Gets the entity's primary key identity value.

InitLists
public void InitLists(IStorage db)
iDbPersistable.InitLists(db)

Initializes relation-many lists for the entity.

LoadAsync
public ValueTask LoadAsync(SettingsStorage storage, IStorage db, CancellationToken cancellationToken)
result = iDbPersistable.LoadAsync(storage, db, cancellationToken)

Asynchronously loads the entity's state from the specified settings storage.

Save
public void Save(SettingsStorage storage)
iDbPersistable.Save(storage)

Saves the entity's state to the specified settings storage.

SetIdentity
public void SetIdentity(object id)
iDbPersistable.SetIdentity(id)

Sets the entity's primary key identity value.