示例#1
0
        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);
            }
        }
示例#2
0
        public bool Delete(int identity, bool isIgnoreTransaction = false)
        {
            valueType value = this[identity];

            return(value != null && SqlTable.Delete(value, isIgnoreTransaction));
        }