コード例 #1
0
        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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 internal ResultSet(identitytableSelectByPrimaryKey storedProcedure)
 {
     this._StoredProcedureResultSet_StoredProcedure = storedProcedure;
 }