public identitytableSelectByPrimaryKey CreateSelectByPrimaryKeyStoredProcedure(Record record) { var sp = new identitytableSelectByPrimaryKey(); if (record == null) { return(sp); } if (record.OldRecord == null) { throw new OldRecordIsNullException(); } sp.PK_IntColumn = record.OldRecord.IntColumn; return(sp); }
public Record SelectByPrimaryKeyOrNull(Database database, Int32 intColumn) { var sp = new identitytableSelectByPrimaryKey(); sp.PK_IntColumn = intColumn; var rs = sp.GetFirstResultSet(database); if (rs == null) { return(null); } var r = new Record(rs); r.SetOldRecordProperty(); return(r); }
public identitytableSelectByPrimaryKey CreateSelectByPrimaryKeyStoredProcedure(Record record) { var sp = new identitytableSelectByPrimaryKey(); ((IDatabaseContext)sp).TransactionKey = this.TransactionKey; if (record == null) { return(sp); } if (record.OldRecord == null) { throw new OldRecordIsNullException(); } sp.PK_IntColumn = record.OldRecord.IntColumn; return(sp); }
internal ResultSet(identitytableSelectByPrimaryKey storedProcedure) { this._StoredProcedureResultSet_StoredProcedure = storedProcedure; }