I have an .net core app and I'm trying to use with EntityFrameworkCore to build the db but when I do:
update-database
This error shows up:
Format of the initialization string does not conform to specification starting at index 0.
I've changed my connection string to a standard format and tried this because I had an error because the assembly of my main project wasn't the same as the library I'm using for classes:
services.AddDbContext<conn>(options => options.UseSqlServer("connname", b => b.MigrationsAssembly("conn")));
"ConnectionStrings": {
"FITMEConnection": "Server=foo;Database=fooname;Trusted_Connection=True"
},
I'm getting mad about this because I've searched this error and seems simple to solve. What am I doing wrong? Thank you.