Ejemplo n.º 1
0
        public ActionResult Cols(string tabName)
        {
            var res = _tableInfoService.GetTable(new GetTableRequest()
            {
                TableName = tabName
            });

            res.CheckErrorAndThrowIt();
            return(View(res.Data));
        }
Ejemplo n.º 2
0
        public static TableInfoDto GetTableInfo(ITableInfoService tableInfoService, string tabName)
        {
            var tableRs = tableInfoService.GetTable(
                new GetTableRequest()
            {
                TableName = tabName
            }
                );

            tableRs.CheckErrorAndThrowIt();
            var tabInfo = tableRs.Data;

            if (tabInfo == null)
            {
                throw new MyFX.Core.Exceptions.AppServiceException(string.Format("未查询到表[{0}]的信息", tabName));
            }

            return(tabInfo);
        }