namespace zero.Stores; public abstract partial class StoreOperations { /// public virtual async Task> Delete(T model) where T : ZeroIdEntity, new() { if (model == null) { return EntityResult.Fail("@errors.ondelete.idnotfound"); } InterceptorInstruction instruction = Interceptors.ForDelete(model); if (!await instruction.Start()) { return instruction.Result; } Session.Delete(model); await instruction.Complete(); await Session.SaveChangesAsync(); return EntityResult.Success(); } }