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

Jignesh TrivediRank #16 · 50.3K reputationPosted Sep 12, 2014, 1:12 AM EDT
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.
kinjal patel147 reputationPosted Sep 12, 2014, 1:25 AM EDT
kinjal patel147 reputationPosted Sep 12, 2014, 1:28 AM EDT