public void Delete(Customer customer) { customer.IsDelete = true; FDIDB.Customers.Attach(customer); var entry = FDIDB.Entry(customer); entry.Property(e => e.IsDelete).IsModified = true; // DB.Customers.Remove(customer); }
public void DeleteTokenRefresh(TokenRefresh token) { FDIDB.Entry(token).State = System.Data.Entity.EntityState.Deleted; }
public void DeleteMapDnRequest(MapProduceRequestWare mapping) { FDIDB.Entry(mapping).State = (System.Data.Entity.EntityState)EntityState.Deleted; }