public void Delete(int identity, Action <valueType> onDeleted, bool isIgnoreTransaction = false) { valueType value = this[identity]; if (value != null) { SqlTable.Delete(value, onDeleted, isIgnoreTransaction); } else if (onDeleted != null) { onDeleted(null); } }
public bool Delete(int identity, bool isIgnoreTransaction = false) { valueType value = this[identity]; return(value != null && SqlTable.Delete(value, isIgnoreTransaction)); }