예제 #1
0
 public void DeleteNotification(UserTextNotification notification)
 {
     try {
         notificationContext2.AttachTo(EntitySetName, notification,"*");
         notificationContext2.DeleteObject(notification);
         notificationContext2.SaveChanges();
     } catch {
     }
 }
예제 #2
0
 public void AddNotification(UserTextNotification notification)
 {
     try {
         notification.RowKey = Guid.NewGuid().ToString();
         notificationContext.AddObject(EntitySetName, notification);
         notificationContext.SaveChanges();
     } catch {
     }
 }