0

I am working on a project and I had to add a SQL Database project to the project, so I created the tables with SSDT and I was asked to implement EF6 to the project and I was wondering how to generate the EF Model from the SQL database project?

Chris
  • 2,953
  • 10
  • 48
  • 118
  • Can't you just create your model from the database itself (as opposed to the database project)? – Pawel Jul 17 '15 at 14:49
  • 1
    Possible duplicate of [EF Reverse POCO against a SQL Database Project?](http://stackoverflow.com/questions/30179726/ef-reverse-poco-against-a-sql-database-project/30240409#30240409) – Keith Jul 17 '15 at 15:32
  • @Pawel, I can't because the database is a SQL database project. If it was based off of a normal SQL database then it would be easier and no problem. It was my first time adding a SQL database project using ssdt. Normally I don't use ssdt and just use SSMS and do things thatvway – Chris Jul 17 '15 at 16:01

1 Answers1

0

What I found was that I needed to publish the SQL Database Project, once I did that I was able to generate the EF classes.

Chris
  • 2,953
  • 10
  • 48
  • 118