Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

ASP.NET Core EntityFramework

$
0
0

Hi,

    I have a tutorial example that uses EF to create two databases.

I have been deploying to a remote server for testing in the real world.

My hosting provider only allows me one Database. So I would like to put all the tables in the one database.

One of the database was for the built in Identity - security setup and the other for a blog.

If I can get it working locally first.

From the config.developement.json below

"BlogDataContext": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=DB_******_*******;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True;ApplicationIntent=ReadWrite;MultiSubnetFailover=False;",
    "IdentityDataContext": "Data Source=(localdb)\\MSSQLLocalDB;Initial Catalog=DB_DB_******_*******;;Integrated Security=True;Connect Timeout=30;Encrypt=False;TrustServerCertificate=True;ApplicationIntent=ReadWrite;MultiSubnetFailover=False;"

The above does not seem to work as only the Identity tables are added to the Database.

Not sure what is the way to go about this?

Thanks,


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>