Interface IDatabaseContext
Database context
Inherited Members
System.IDisposable.Dispose()
Namespace: Simplic.Data.NoSql
Assembly: Simplic.Data.dll
Syntax
public interface IDatabaseContext : IDisposable
Methods
| Improve this Doc View SourceAddCommand(Func<Task>)
Add a command to the database context
Declaration
void AddCommand(Func<Task> func)
Parameters
Type | Name | Description |
---|---|---|
System.Func<System.Threading.Tasks.Task> | func | Command delegate |
SaveChangesAsync()
Save changes in the current context
Declaration
Task<int> SaveChangesAsync()
Returns
Type | Description |
---|---|
System.Threading.Tasks.Task<System.Int32> | Amount of changes |