public async Task <Guid> Insert(string into, IDataEntityObject item) { var entity = new Entity() { Key = _db.CreateKeyFactory(into).CreateIncompleteKey(), }; foreach (var propKey in item.Keys()) { entity[propKey] = item.Get <string>(propKey); } var keys = await _db.InsertAsync(new[] { entity }).ConfigureAwait(false); return(item.Id); }
public async Task <Guid> Update(string into, IDataEntityObject item) { throw new NotImplementedException(); }
public async Task <Guid> Insert(IDataEntityObject item) { return(await _dataAccessProvider.Insert(CollectionName, item).ConfigureAwait(false)); }