I have problem adding entity framework model to my project. Here is what I am doing:
1- Right click on project
2- Select add
3- In dialog select data from installed templates.
4- in installed template I cannot see ADO.NET entity framework template.
What should I install?
I use NuGet to install Entity framework 4.2.0.0 but no success.
I am using Visual Studio 2010
EDIT: Look for in the comment of answer for information.
Which method of Entity Framework are you trying to use? The most straightforward (in my opinion) is CodeFirst.
DataBaseFirst or ModelFirst
If you are using the wizard to create a model,
CodeFirst
(you can do this with an existing database, so the name is a bit of a misnomer)
Example
Note: If you are using an existing database, you can either name your classes the same as your tables or add the Table attribute to the class declaration. If you are putting your tables into a different schema (default is dbo) then you will need the Table tag regardless of the name so that you can specify the schema.
Note: If you are using and existing database, you can either name your properties the same as the corresponding fields or you can add the Column attribute.