Beispiel #1
0
 /// <summary>
 /// Get the items that has been deleted but being marked
 /// as transient is a nonsense to remove them from the
 /// underlying storage, simply dispose its instance if required.
 /// </summary>
 /// <typeparam name="T">The type of the object.</typeparam>
 /// <param name="service">The service.</param>
 /// <returns>The requested list.</returns>
 public static IEnumerable <T> GetRemovedItems <T>(this IChangeTrackingService service)
 {
     return(service.GetItemsWhereActionIs <T>(ProposedActions.Dispose));
 }
Beispiel #2
0
 /// <summary>
 /// Get the items that has been created.
 /// </summary>
 /// <typeparam name="T">The type of the object.</typeparam>
 /// <param name="service">The service.</param>
 /// <returns>The requested list.</returns>
 public static IEnumerable <T> GetNewItems <T>(this IChangeTrackingService service)
 {
     return(service.GetItemsWhereActionIs <T>(ProposedActions.Create));
 }