Exemple #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);
        }
Exemple #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);
        }
Exemple #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);
        }
Exemple #4
0
 internal ResultSet(IdentityTableSelectByPrimaryKey storedProcedure)
 {
     this._StoredProcedureResultSet_StoredProcedure = storedProcedure;
 }