Huten Tag Elitepvper's !
Wie die Überschrift verrät geht es um die Datenbank in Microsoft Visual Studios.
Worum genau es geht??? Ich haben ein MSSQL Server aufgesetzt soweit alles Richtig gemacht wie im Video bei Shido [Danke nochmal für das Video]
Ab minute [06:10] öffnt er den "NuGet-Packet Manager" und wählt dann "NuGet-Packed Console" und startet dann "OpenNos.DAL.EF" Bei ihm Startet da irgendwie "Navicat Lite" Doch bei mir Passiert nichts. Normal??? dann gibt er unten "update-database -Verbose" ein und die Datenbank erzeugt sich irgendwie.....doch da habe ich einen Haken!!!! hier mal die Console Kopiert.
PM> update-database -Verbose
Using StartUp project 'OpenNos.EpPathFinding'.
Using NuGet project 'OpenNos.DAL.EF'.
Specify the '-Verbose' flag to view the SQL statements being applied to the target database.
System.InvalidOperationException: No connection string named 'OpenNosContext' could be found in the application config file.
bei System.Data.Entity.Internal.LazyInternalConnection .Initialize()
bei System.Data.Entity.Internal.LazyInternalConnection .get_Connection()
bei System.Data.Entity.Internal.LazyInternalContext.ge t_Connection()
bei System.Data.Entity.Infrastructure.DbContextInfo..c tor(Type contextType, DbProviderInfo modelProviderInfo, AppConfig config, DbConnectionInfo connectionInfo, Func`1 resolver)
bei System.Data.Entity.Migrations.DbMigrator..ctor(DbM igrationsConfiguration configuration, DbContext usersContext, DatabaseExistenceState existenceState, Boolean calledByCreateDatabase)
bei System.Data.Entity.Migrations.DbMigrator..ctor(DbM igrationsConfiguration configuration)
bei System.Data.Entity.Migrations.Design.ToolingFacade .BaseRunner.GetMigrator()
bei System.Data.Entity.Migrations.Design.ToolingFacade .UpdateRunner.Run()
bei System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
bei System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
bei System.Data.Entity.Migrations.Design.ToolingFacade .Run(BaseRunner runner)
bei System.Data.Entity.Migrations.Design.ToolingFacade .Update(String targetMigration, Boolean force)
bei System.Data.Entity.Migrations.UpdateDatabaseComman d.<>c__DisplayClass2.<.ctor>b__0()
bei System.Data.Entity.Migrations.MigrationsDomainComm and.Execute(Action command)
No connection string named 'OpenNosContext' could be found in the application config file.
PM>
Hoffe ihr könnt mir Weiter helfen, Danke jedem Leser im Vorraus und wünsche dennoch einen schönen Tag/Abend MfG : mauricelein

Wie die Überschrift verrät geht es um die Datenbank in Microsoft Visual Studios.
Worum genau es geht??? Ich haben ein MSSQL Server aufgesetzt soweit alles Richtig gemacht wie im Video bei Shido [Danke nochmal für das Video]
Ab minute [06:10] öffnt er den "NuGet-Packet Manager" und wählt dann "NuGet-Packed Console" und startet dann "OpenNos.DAL.EF" Bei ihm Startet da irgendwie "Navicat Lite" Doch bei mir Passiert nichts. Normal??? dann gibt er unten "update-database -Verbose" ein und die Datenbank erzeugt sich irgendwie.....doch da habe ich einen Haken!!!! hier mal die Console Kopiert.
PM> update-database -Verbose
Using StartUp project 'OpenNos.EpPathFinding'.
Using NuGet project 'OpenNos.DAL.EF'.
Specify the '-Verbose' flag to view the SQL statements being applied to the target database.
System.InvalidOperationException: No connection string named 'OpenNosContext' could be found in the application config file.
bei System.Data.Entity.Internal.LazyInternalConnection .Initialize()
bei System.Data.Entity.Internal.LazyInternalConnection .get_Connection()
bei System.Data.Entity.Internal.LazyInternalContext.ge t_Connection()
bei System.Data.Entity.Infrastructure.DbContextInfo..c tor(Type contextType, DbProviderInfo modelProviderInfo, AppConfig config, DbConnectionInfo connectionInfo, Func`1 resolver)
bei System.Data.Entity.Migrations.DbMigrator..ctor(DbM igrationsConfiguration configuration, DbContext usersContext, DatabaseExistenceState existenceState, Boolean calledByCreateDatabase)
bei System.Data.Entity.Migrations.DbMigrator..ctor(DbM igrationsConfiguration configuration)
bei System.Data.Entity.Migrations.Design.ToolingFacade .BaseRunner.GetMigrator()
bei System.Data.Entity.Migrations.Design.ToolingFacade .UpdateRunner.Run()
bei System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
bei System.AppDomain.DoCallBack(CrossAppDomainDelegate callBackDelegate)
bei System.Data.Entity.Migrations.Design.ToolingFacade .Run(BaseRunner runner)
bei System.Data.Entity.Migrations.Design.ToolingFacade .Update(String targetMigration, Boolean force)
bei System.Data.Entity.Migrations.UpdateDatabaseComman d.<>c__DisplayClass2.<.ctor>b__0()
bei System.Data.Entity.Migrations.MigrationsDomainComm and.Execute(Action command)
No connection string named 'OpenNosContext' could be found in the application config file.
PM>
Hoffe ihr könnt mir Weiter helfen, Danke jedem Leser im Vorraus und wünsche dennoch einen schönen Tag/Abend MfG : mauricelein







