public async Task InsertEmployeeAsync(IDictionary <string, object> newValues, CancellationToken ct = default)
        {
            var employee = new Employee();

            foreach (var field in newValues.Keys)
            {
                UpdateEmployee(employee, field, newValues[field]);
            }
            await Loader.AddEntity(this, employee);
        }
Example #2
0
 public Task Add(ProductFlat product)
 {
     return(Loader.AddEntity(this, product));
 }
Example #3
0
 public Task AddAsync(Product product)
 {
     return(Loader.AddEntity(this, product));
 }
 public async Task InsertEmployeeAsync(Employee dataItem, CancellationToken ct = default)
 {
     await Loader.AddEntity(this, dataItem);
 }
 public async Task InsertSupplierAsync(Supplier dataItem, CancellationToken ct = default)
 {
     await Loader.AddEntity(this, dataItem);
 }