Click here to Skip to main content
15,888,610 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I want to create an dynamic database using model classes and entity framework code first approach, without any commands. Scenario is like when admin will click on the approve button it will create an database using different connection string that I pass run-time and then database will create using the model classes that I have create.
Posted
Comments
CHill60 9-Jun-15 3:52am    
What have you tried?
Where are you stuck?
Mostafa Asaduzzaman 9-Jun-15 5:54am    
you need run some commands to create the tables and migrate them to the database. You can automate powershell scripts within your code so that when ever the admin will click the button it will run the scripts and create the database tables

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900