public override AddColumnModel GetAddModel()
        {
            var columnTypeList = ((ColumnType)0).ToSelectList();

            columnTypeList.RemoveAll(x => x.Value == "10" || x.Value == "11");
            return(new AddColumnModel()
            {
                ColumnTypeList = columnTypeList,
                TargetTableList = _tableManager.List().ToSelectListItem(),
            });
        }
Esempio n. 2
0
 public ImportExportDataModel ExportSchema()
 {
     return(new ImportExportDataModel
     {
         Languages = _languageManager.List(),
         Modules = _moduleManager.List().Select(x => { x.Tables = new List <Table>(); x.Users = new List <UserModule>(); return x; }).ToList(),
         Tables = _tableManager.List().Select(x => { x.Columns = new List <Column>(); x.Module = null; return x; }).ToList(),
         Columns = _columnManager.List().Select(x => { x.Table = null; return x; }).ToList(),
         SiteInformations = _siteInformationManager.List(),
         Users = _userManager.List().Select(x => { x.Modules = new List <UserModule>(); return x; }).ToList(),
         UserModules = _userModuleManager.List().Select(x => { x.Module = null; x.User = null; return x; }).ToList(),
     });
 }