示例#1
0
        public MultiPkTableSelectByPrimaryKey CreateSelectByPrimaryKeyStoredProcedure(Record record)
        {
            var sp = new MultiPkTableSelectByPrimaryKey();

            if (record == null)
            {
                return(sp);
            }
            if (record.OldRecord == null)
            {
                throw new OldRecordIsNullException();
            }
            sp.PK_BigIntColumn = record.OldRecord.BigIntColumn;
            sp.PK_IntColumn    = record.OldRecord.IntColumn;
            sp.PK_FloatColumn  = record.OldRecord.FloatColumn;
            return(sp);
        }
示例#2
0
        public Record SelectByPrimaryKeyOrNull(Database database, Int64 bigIntColumn, Int32 intColumn, Double floatColumn)
        {
            var sp = new MultiPkTableSelectByPrimaryKey();

            sp.PK_BigIntColumn = bigIntColumn;
            sp.PK_IntColumn    = intColumn;
            sp.PK_FloatColumn  = floatColumn;
            var rs = sp.GetFirstResultSet(database);

            if (rs == null)
            {
                return(null);
            }
            var r = new Record(rs);

            r.SetOldRecordProperty();
            return(r);
        }
示例#3
0
 internal ResultSet(MultiPkTableSelectByPrimaryKey storedProcedure)
 {
     this._StoredProcedureResultSet_StoredProcedure = storedProcedure;
 }