public RowGuidColTableSelectByPrimaryKey CreateSelectByPrimaryKeyStoredProcedure(Record record) { var sp = new RowGuidColTableSelectByPrimaryKey(); if (record == null) { return(sp); } if (record.OldRecord == null) { throw new OldRecordIsNullException(); } sp.PK_RowGuidColumn = record.OldRecord.RowGuidColumn; return(sp); }
public Record SelectByPrimaryKeyOrNull(Database database, Guid rowGuidColumn) { var sp = new RowGuidColTableSelectByPrimaryKey(); sp.PK_RowGuidColumn = rowGuidColumn; var rs = sp.GetFirstResultSet(database); if (rs == null) { return(null); } var r = new Record(rs); r.SetOldRecordProperty(); return(r); }
public RowGuidColTableSelectByPrimaryKey CreateSelectByPrimaryKeyStoredProcedure(Record record) { var sp = new RowGuidColTableSelectByPrimaryKey(); ((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); }
internal ResultSet(RowGuidColTableSelectByPrimaryKey storedProcedure) { this._StoredProcedureResultSet_StoredProcedure = storedProcedure; }