示例#1
0
 protected override void OnDeleted(DataDeletionContext context)
 {
     if (context.States.TryGetValue(DELETED_RESULTS, out var items))
     {
         this.OnDeleted(items as IEnumerable);
     }
 }
示例#2
0
 protected override void OnDeleting(DataDeletionContext context)
 {
     if (string.Equals(context.Name, DataAccessModule.SECURITY_USER, StringComparison.OrdinalIgnoreCase))
     {
         context.States[DELETED_RESULTS] = context.DataAccess.Select <User>(context.Name, context.Condition, Paging.Disable).ToArray();
     }
     else if (string.Equals(context.Name, DataAccessModule.COMMUNITY_USERPROFILE, StringComparison.OrdinalIgnoreCase))
     {
         context.States[DELETED_RESULTS] = context.DataAccess.Select <Models.UserProfile>(context.Name, context.Condition, Paging.Disable).ToArray();
     }
 }
 protected override void OnDeleting(DataDeletionContext context)
 {
     context.States[DELETED_RESULTS] = context.DataAccess.Select <TEntity>(context.Name, context.Condition, _scope, Paging.Disable).ToArray();
 }