예제 #1
0
        public static XQAllOutBlocks ReadFromDB(string tableNamePostfix = null /*, string date = default,string accno = default,char cts_medosu = default,string cts_expcode = default,string cts_price = default,string cts_middiv = default */)
        {
            using (XQt0151 instance = new XQt0151())
            {
                XQAllOutBlocks results = new XQAllOutBlocks();

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

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