hello,
This kinjal patel and i have one problem while implementing windows form application in c# using Entity Framework and set up the project and deploying in another PC then code first approach is not creating database so that data is not retrieve. so how it is solved the problem if any one have answer then mail me at [email protected]
from
kinjal patel
kinjal patelPosted Sep 12, 2014, 5:28 AM
kinjal patelPosted Sep 12, 2014, 5:25 AM
Jignesh TrivediPosted Sep 12, 2014, 5:12 AM
Hi,
using "Update-Database" command you can create script to create database
Update-Database -Script -connectionstring "Data Source=.\SQLexpress;Initial Catalog=Testdb1;Persist Security Info=True;User ID=sa;Password=sa;MultipleActiveResultSets=True" -configuration:CodeFirstStoredProcedure.EntitiesMigrations.Configuration -Verbose
this command generate SQL script that can run on production server
hope this will help you.