// [START create] public void Create(ImageMetaDeta image) { try { var entity = image.ToEntity(); entity.Key = _db.CreateKeyFactory("Image").CreateIncompleteKey(); var keys = _db.Insert(entity); image.imageId = keys.Path.First().Id; } catch (Exception e) { ExceptionLogging.SendExcepToDB(e); } }
public void Update(ImageMetaDeta image) { _db.Update(image.ToEntity()); }