private void GenerateModel() { System.Diagnostics.Debugger.Launch(); var startUpProjectCon = EntityFrameworkViewMigrationsSection.GetConfigurationFromProject(this.StartUpProject); startUpProjectCon.DocumentElement.SelectSingleNode("/configuration/connectionStrings"); var viewDefinition = this.GetCurrentViewDefinition(); //var connectionString = this.GetConnectionString(); //var generateCommand = this.GetGenerateCommand(); // Get conection string using (var connection = new SqlConnection("TODO")) using (var command = new SqlCommand("TODO", connection) { CommandType = CommandType.Text }) { connection.Open(); command.ExecuteNonQuery(); } }
private DatabaseProjectConfigurationElement GetDatabaseConfiguration(EntityFrameworkViewMigrationsSection configuration) { return(configuration.DatabaseProject); }
private EntityFrameworkViewMigrationsSection GetConfiguration() { return(EntityFrameworkViewMigrationsSection.GetSectionFromProject(this.Project)); }