예제 #1
0
        public RowGuidColTableUpdate CreateUpdateStoredProcedure(Record record)
        {
            var sp = new RowGuidColTableUpdate();

            if (record == null)
            {
                return(sp);
            }
            if (record.OldRecord == null)
            {
                throw new OldRecordIsNullException();
            }
            sp.RowGuidColumn    = record.RowGuidColumn;
            sp.NVarCharColumn   = record.NVarCharColumn;
            sp.PK_RowGuidColumn = record.OldRecord.RowGuidColumn;
            return(sp);
        }
예제 #2
0
        public RowGuidColTableUpdate CreateUpdateStoredProcedure(Record record)
        {
            var sp = new RowGuidColTableUpdate();

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