コード例 #1
0
        public AllDataTypeTableSelectByPrimaryKey CreateSelectByPrimaryKeyStoredProcedure(Record record)
        {
            var sp = new AllDataTypeTableSelectByPrimaryKey();

            if (record == null)
            {
                return(sp);
            }
            if (record.OldRecord == null)
            {
                throw new OldRecordIsNullException();
            }
            sp.PK_PrimaryKeyColumn = record.OldRecord.PrimaryKeyColumn;
            return(sp);
        }
コード例 #2
0
ファイル: AllDataTypeTable.cs プロジェクト: hungud/higlabo
        public Record SelectByPrimaryKeyOrNull(Database database, Int64 primaryKeyColumn)
        {
            var sp = new AllDataTypeTableSelectByPrimaryKey();

            sp.PK_PrimaryKeyColumn = primaryKeyColumn;
            var rs = sp.GetFirstResultSet(database);

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

            r.SetOldRecordProperty();
            return(r);
        }
コード例 #3
0
 internal ResultSet(AllDataTypeTableSelectByPrimaryKey storedProcedure)
 {
     this._StoredProcedureResultSet_StoredProcedure = storedProcedure;
 }