예제 #1
0
 public static IDataChangesTransaction DeleteItems <T>(this IDataChangesTransaction transaction, params T[] items) where T : class, IEntityWithKey, new()
 {
     return(transaction.DeleteItems(new DeleteItemRequest <T>()
     {
         Keys = items.Select(item => item.Id).ToList()
     }));
 }
예제 #2
0
 public static IDataChangesTransaction DeleteItem <T>(this IDataChangesTransaction transaction, string key) where T : class, IEntityWithKey, new()
 {
     return(transaction.DeleteItems(new DeleteItemRequest <T>()
     {
         DataOperationName = "DeleteItems",
         Key = key
     }));
 }