kinjal patel

kinjal patel

  • NA
  • 152
  • 20k

data is not retrieve using entity framework code first

Sep 12 2014 4:16 AM
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 kg.patel@merillife.com
from 
kinjal patel

Answers (3)

0
kinjal patel

kinjal patel

  • 0
  • 152
  • 20k
Sep 12 2014 5:28 AM
WHILE RUN EXE FROM RELEASE FOLDER THEN DATA IS NOT RETRIEVE
0
kinjal patel

kinjal patel

  • 0
  • 152
  • 20k
Sep 12 2014 5:25 AM
I ALREADY DONE BUT DATA IS NOT RETRIEVE
0
Jignesh Trivedi

Jignesh Trivedi

  • 0
  • 62.3k
  • 46m
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.