Exemple #1
0
 public void Create(ApplicationInfo info)
 {
     foreach (DatabaseInfo database in info.Databases)
     {
         UserInterfaceInfo ui = Create(database);
         info.UserInterfaces.Add(ui);
     }
 }
Exemple #2
0
        public UserInterfaceInfo Create(DatabaseInfo database)
        {
            UserInterfaceInfo ui = new UserInterfaceInfo();

            ui.DatabaseInfo = database;
            ui.Set(database);
            foreach (TableInfo table in database.Tables.Where(i => i.Crud != Crud.None))
            {
                ViewGroupInfo group = CreateViewGroup(table);

                ui.Groups.Add(group);
            }
            return(ui);
        }