Ejemplo n.º 1
0
        public Int32 Delete(Database database, Guid rowGuidColumn)
        {
            var sp = new RowGuidColTableDelete();

            sp.PK_RowGuidColumn = rowGuidColumn;
            return(sp.ExecuteNonQuery(database));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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);
        }