Example #1
0
        public IdentityTableUpdate CreateUpdateStoredProcedure(Record record)
        {
            var sp = new IdentityTableUpdate();

            if (record == null)
            {
                return(sp);
            }
            if (record.OldRecord == null)
            {
                throw new OldRecordIsNullException();
            }
            sp.IntColumn      = record.IntColumn;
            sp.NVarCharColumn = record.NVarCharColumn;
            sp.PK_IntColumn   = record.OldRecord.IntColumn;
            return(sp);
        }
Example #2
0
        public IdentityTableUpdate CreateUpdateStoredProcedure(Record record)
        {
            var sp = new IdentityTableUpdate();

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