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