Home > Net >  There was a problem VS2019 database migration the Format of the initialization string does not confo
There was a problem VS2019 database migration the Format of the initialization string does not confo

Time:02-16

Use VS2019 web development projects, use PM> Update error database migration on the database - the Format of the initialization string does not conform to specification starting at index 0., specific as follows:


The connection string as follows: "Server=(local) \ \ SQLSERVERUN; The Database=SmartMk; User ID=sa; Password=XXX; MultipleActiveResultSets=true;"
VS runtime can connect to the database, but the migration when the database is still the problem, have to find a lot about the solution of the string, are tried, still can't solve,
Please expert advice, thank you!

CodePudding user response:

Using.net core 3.1

CodePudding user response:

Database is used to create,.net core Identity

CodePudding user response:

After the test, using the same connection string, self-built another custom context can realize data migration, but use. Netcore IdentityDbContext impossible to create a data table
  • Related