Skip to content

IBaseTable Interface ​

Definition ​

Describes capabilities provided when inheriting from BaseTable

  • Namespace: JASE.Database
  • Assembly: JASE.Database.dll

Methods ​

NameDescription
bool Delete(IConnection conn, int commandTimeout = null)DELETE the current entry based on it's primary key value
IReadOnlyDictionary<string, object> GetDirty()Returns a read only Dictionary of values detected as Dirty
object GetPkValue()Get the records Primary Key value
string GetPropertyName(string column)Resolve a column name to a property name
bool IsDirty()Check if the entry appears to be "dirty" in relation to the persisted data in the table
bool LoadedFromDB()Check if the record is thought to have been loaded from the database table
Task<bool> Save(IDatabaseSession conn, bool upsert, int commandTimeout)Save the current entry to the database table
void TrackChanges()Initiates tracking of Property value changes relative to current state