Example #1
0
        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);
            }
        }
Example #3
0
        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));
        }