public static XQt8435OutBlock[] ReadFromDB(string tableNamePostfix = null /*, string gubun = default */) { using (XQt8435 instance = new XQt8435()) { string tableName = (tableNamePostfix == null) ? "XQt8435OutBlock" : $"XQt8435OutBlock_{tableNamePostfix}"; QueryOption qo = new QueryOption(tableName); // if (gubun != default) qo.Add("gubun", gubun); var outBlock = instance.SelectMany <XQt8435OutBlock>(qo); return(outBlock); } }