Exemplo n.º 1
0
        public static XQAllOutBlocks ReadFromDB(string tableNamePostfix = null /*, char gubun = default,char jnilgubun = default,long sdiff = default,long ediff = default,long jc_num = default,long sprice = default,long eprice = default,long volume = default,long idx = default */)
        {
            using (XQt1452 instance = new XQt1452())
            {
                XQAllOutBlocks results = new XQAllOutBlocks();

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

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