Exemple #1
0
        public Int32 Delete(Database database, Guid rowGuidColumn)
        {
            var sp = new RowGuidColTableDelete();

            sp.PK_RowGuidColumn = rowGuidColumn;
            return(sp.ExecuteNonQuery(database));
        }
Exemple #2
0
        public Int32 Delete(Database database, Guid rowGuidColumn)
        {
            var sp = new RowGuidColTableDelete();

            ((IDatabaseContext)sp).TransactionKey = this.TransactionKey;
            sp.PK_RowGuidColumn = rowGuidColumn;
            return(sp.ExecuteNonQuery(database));
        }
Exemple #3
0
        public RowGuidColTableDelete CreateDeleteStoredProcedure(Record record)
        {
            var sp = new RowGuidColTableDelete();

            if (record == null)
            {
                return(sp);
            }
            if (record.OldRecord == null)
            {
                throw new OldRecordIsNullException();
            }
            sp.PK_RowGuidColumn = record.OldRecord.RowGuidColumn;
            return(sp);
        }
Exemple #4
0
        public RowGuidColTableDelete CreateDeleteStoredProcedure(Record record)
        {
            var sp = new RowGuidColTableDelete();

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