Пример #1
0
        public Int32 Delete(Database database, Int32 intColumn)
        {
            var sp = new IdentityTableDelete();

            sp.PK_IntColumn = intColumn;
            return(sp.ExecuteNonQuery(database));
        }
Пример #2
0
        public Int32 Delete(Database database, Int32 intColumn)
        {
            var sp = new IdentityTableDelete();

            ((IDatabaseContext)sp).TransactionKey = this.TransactionKey;
            sp.PK_IntColumn = intColumn;
            return(sp.ExecuteNonQuery(database));
        }
Пример #3
0
        public IdentityTableDelete CreateDeleteStoredProcedure(Record record)
        {
            var sp = new IdentityTableDelete();

            if (record == null)
            {
                return(sp);
            }
            if (record.OldRecord == null)
            {
                throw new OldRecordIsNullException();
            }
            sp.PK_IntColumn = record.OldRecord.IntColumn;
            return(sp);
        }
Пример #4
0
        public IdentityTableDelete CreateDeleteStoredProcedure(Record record)
        {
            var sp = new IdentityTableDelete();

            ((IDatabaseContext)sp).TransactionKey = this.TransactionKey;
            if (record == null)
            {
                return(sp);
            }
            if (record.OldRecord == null)
            {
                throw new OldRecordIsNullException();
            }
            sp.PK_IntColumn = record.OldRecord.IntColumn;
            return(sp);
        }