Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        public Record SelectByPrimaryKeyOrNull(Database database, Int64 bigIntColumn, Int32 intColumn, Single 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);
        }
 internal ResultSet(multipktableSelectByPrimaryKey storedProcedure)
 {
     this._StoredProcedureResultSet_StoredProcedure = storedProcedure;
 }