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); }
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); }