Simply create an Entity Framework Project
-
Hi @all:-) This seems to me like a , eh, quite ridiculous question, but I´m absolutely unable to find out where to get the Project Template for Entity Framework in VS2012...trying to do so since round about 50 minutes :mad: What I can do is rightclick under my webproject, select 'Data' and then add a new ADO.NET Entity data model which then will be created under my WebApp-branch... What I want to do is to add an independent Project in the solution in order to reference it from any project within the solution... I know this is possible; I've done it two or three times before, but I regrettably forgot how I've done that... Can anyone please point me to the right direction?? Thanks in advance, Clodetta
-
Hi @all:-) This seems to me like a , eh, quite ridiculous question, but I´m absolutely unable to find out where to get the Project Template for Entity Framework in VS2012...trying to do so since round about 50 minutes :mad: What I can do is rightclick under my webproject, select 'Data' and then add a new ADO.NET Entity data model which then will be created under my WebApp-branch... What I want to do is to add an independent Project in the solution in order to reference it from any project within the solution... I know this is possible; I've done it two or three times before, but I regrettably forgot how I've done that... Can anyone please point me to the right direction?? Thanks in advance, Clodetta
ok, this is a perfect example of someone failing to use google/bing/whatsoever the correct way with the correct keywords... But just in case, someone else stumbles over my problem, here´s the solution:
The answer is – To consume an Entity model in separate projects, you have to create the model in its own project, i.e. a class library project.
complete article as albert einstein once stated: "human stupidity and the universe are endless... for the second i´m not that sure..." :-O
-
ok, this is a perfect example of someone failing to use google/bing/whatsoever the correct way with the correct keywords... But just in case, someone else stumbles over my problem, here´s the solution:
The answer is – To consume an Entity model in separate projects, you have to create the model in its own project, i.e. a class library project.
complete article as albert einstein once stated: "human stupidity and the universe are endless... for the second i´m not that sure..." :-O
You don't have to put it in a sperate project, but it's probably recommended. There's really isn't a project template. That's why it's so difficult to find! YOu can create a Class Library project, then open the Package Manager console and type
Install-Package EntityFramework
. Once that's done, you've got a few ways you can go. You can find out about those from here[^].A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
You don't have to put it in a sperate project, but it's probably recommended. There's really isn't a project template. That's why it's so difficult to find! YOu can create a Class Library project, then open the Package Manager console and type
Install-Package EntityFramework
. Once that's done, you've got a few ways you can go. You can find out about those from here[^].A guide to posting questions on CodeProject[^]
Dave Kreskowiakoh, ok. few more "tricks" to "entityframework" my solution... ;) Since this is no day to day job one most likely will forget how to do it after a few weeks... Thanks for the link! Kind regards :-D