public void Handle(TrucateCustomers command) { _architectureContext.Customers.RemoveRange(_architectureContext.Customers); _architectureContext.Addresses.RemoveRange(_architectureContext.Addresses); _architectureContext.SaveChanges(); }
public void Handle(TrucateCustomers command) { _context.Connection.Execute("DELETE FROM CUSTOMERS"); _context.Connection.Execute("DELETE FROM ADDRESSES"); _eventSourcingContext.Connection.Execute("DELETE FROM EVENTENTITIES"); }