Quantcast
Channel: ADO.NET, Entity Framework, LINQ to SQL, NHibernate
Viewing all articles
Browse latest Browse all 1698

Database account in code only EF Dbcontext creation

$
0
0

I have just begun to look at the Code only EF with Dbcontext creation.

The Dbcontext constructor will need a string parameter to create an instance. 

My question is that since the EF will create database and tables on the fly first time the system runs:

The sql server account contained in that string will have the master role

or 

a normal sql server account. Then Dbcontext will create the database and assign role properly just for the new database by convention?

Secondly, after the database has been created. How does the system know the name of the new database in the future data access?


Viewing all articles
Browse latest Browse all 1698

Trending Articles



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