예제 #1
0
        private void CreateContextAndConfig(List <EntityType> tablesType, Application application, string appPath)
        {
            bool generated = DbContextGenerator.Generate(application.Name, appPath, tablesType);

            if (generated)
            {
                //Create web.config
                string connectionString = Globals.GetSQLServerConnectionString(application);
                ApplicationUtilities.CreateWebConfig(appPath, application, connectionString);

                //Create Global.asax
                ApplicationUtilities.CreateGlobalAsax(application, appPath);
            }
        }