public bool Delete(GenericEntityType entity) { try { _DataContext.GetTable <GenericEntityType>().Attach(entity); GetTable.DeleteOnSubmit(entity); if (_Flag) { _DataContext.SubmitChanges(); } return(true); } catch (Exception e) { _Logger.Error(typeof(GenericEntityType).Name + " could not be DELETED -- " + e); return(false); } }
public void MarkForDeletion(T entity) { GetTable.DeleteOnSubmit(entity); }
public void Delete(T entity) { GetTable.DeleteOnSubmit(entity); }