Exemple #1
0
 // [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);
     }
 }
Exemple #2
0
 public void Update(ImageMetaDeta image)
 {
     _db.Update(image.ToEntity());
 }