コード例 #1
0
ファイル: t0441.cs プロジェクト: tdoobw/XingAPI
        public static XQAllOutBlocks ReadFromDB(string tableNamePostfix = null /*, string accno = default,string passwd = default,string cts_expcode = default,char cts_medocd = default */)
        {
            using (XQt0441 instance = new XQt0441())
            {
                XQAllOutBlocks results = new XQAllOutBlocks();

                string      tableName = (tableNamePostfix == null) ? "XQt0441OutBlock" : $"XQt0441OutBlock_{tableNamePostfix}";
                QueryOption qo        = new QueryOption(tableName);
                results.OutBlock = instance.Select <XQt0441OutBlock>(qo);

                tableName         = (tableNamePostfix == null) ? "XQt0441OutBlock1" : $"XQt0441OutBlock1_{tableNamePostfix}";
                qo                = new QueryOption(tableName);
                results.OutBlock1 = instance.SelectMany <XQt0441OutBlock1>(qo);
                return(results);
            }
        }