예제 #1
0
        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);
        }
예제 #2
0
        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);
        }
예제 #3
0
        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;
 }