How do i change the solution database name
i changed it in the connection string in web config but it throws an abp.dll error.
regards
Anwar
5 Answer(s)
-
0
Hi,
Also, you need to change it in App.config in Migrator project since it has a different config file. After changing database name, have you created your new database using Update-Database? What exception (with stack trace) are you getting?
-
0
There is no connectionstring section in the App.config in the migrator
-
0
Hi,
The Migrator tool's app.config must contain connectionString seciton. See <a class="postlink" href="https://github.com/aspnetzero/aspnet-zero/blob/dev/src/Tools/MyCompanyName.AbpZeroTemplate.Migrator/App.config#L15">https://github.com/aspnetzero/aspnet-ze ... config#L15</a>
Can you check again ?
-
0
<?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <section name="entityFramework" type="System.Data.Entity.Internal.ConfigFile.EntityFrameworkSection, EntityFramework, Version=6.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" requirePermission="false" /> <a class="postlink" href="http://go.microsoft.com/fwlink/?LinkID=237468">http://go.microsoft.com/fwlink/?LinkID=237468</a> --> </configSections> <entityFramework> <defaultConnectionFactory type="System.Data.Entity.Infrastructure.SqlConnectionFactory, EntityFramework" /> <providers> <provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" /> </providers> </entityFramework> <runtime> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <dependentAssembly> <assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-8.0.0.0" newVersion="8.0.0.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="System.Collections.Immutable" publicKeyToken="b03f5f7f11d50a3a" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-1.0.34.0" newVersion="1.0.34.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="EntityFramework.DynamicFilters" publicKeyToken="146423a1b8d60775" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-1.4.11.0" newVersion="1.4.11.0" /> </dependentAssembly> <dependentAssembly> <assemblyIdentity name="AutoMapper" publicKeyToken="be96cd2c38ef1005" culture="neutral" /> <bindingRedirect oldVersion="0.0.0.0-5.1.1.0" newVersion="5.1.1.0" /> </dependentAssembly> </assemblyBinding> </runtime> <startup> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.1" /> </startup> </configuration>
-
0
Hi,
I dont't know how this happend but you can add connection string to your App.config just like in the link I have sent you.