Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

EF 6 on VS 2010 pro.

Posted on 2014-12-05
3
Medium Priority
?
201 Views
Last Modified: 2014-12-21
After I finished creating the model, I don't see a graphical representation of the Entity Framework objects. I am using VS2010 pro. and I have EF 6.1 installed. I was able to select tables and store procedure. What could have gone wrong here?
Link
0
Comment
Question by:VBdotnet2005
  • 2
3 Comments
 
LVL 36

Accepted Solution

by:
Miguel Oz earned 2000 total points
ID: 40484032
EF tools (e.g. graphical support)  is not supported in VS2010 as explained here
Can I develop applications and services with the EF runtime using Visual Studio 2010?

Yes. You can use the EF 6 runtime in any project targeting .NET 4.0 with Visual Studio 2010. You just need to install the EntityFramework NuGet package in your project as described in the "EF Runtime" section of the Getting Entity Framework page. One caveat on this is that there is no version of EF Tools that was designed to work with both Visual Studio 2010 and EF6, therefore only Code First is supported.
0
 

Author Comment

by:VBdotnet2005
ID: 40484049
Hi Miguel,  I am new to EF. In EntityServerModeDatasource1 > ContextTypeName, I don't have any options and TableName is blank. How can I hook it to EntityServerModeDatasource1?
0
 
LVL 36

Assisted Solution

by:Miguel Oz
Miguel Oz earned 2000 total points
ID: 40486219
Regarding your post question.
First of all you need to define what EF version to target 5.0 or 4.0? those are the versions supported by VS2010. You current issue could be related to VS2010 not supporting EF6.0.

It is hard for me to provide any details without seen the full steps you have done and it seems that we are leaving the original question scope. there are many tutorials on the web regarding EF to get you started, for example:
http://chsakell.com/2013/08/03/starting-with-code-first-in-entity-framework/
http://www.entityframeworktutorial.net/EntityFramework5/entity-framework5-introduction.aspx
0

Featured Post

NFR key for Veeam Agent for Linux

Veeam is happy to provide a free NFR license for one year.  It allows for the non‑production use and valid for five workstations and two servers. Veeam Agent for Linux is a simple backup tool for your Linux installations, both on‑premises and in the public cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windocks is an independent port of Docker's open source to Windows.   This article introduces the use of SQL Server in containers, with integrated support of SQL Server database cloning.
An alternative to the "For XML" way of pivoting and concatenating result sets into strings, and an easy introduction to "common table expressions" (CTEs). Being someone who is always looking for alternatives to "work your data", I came across this …
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

782 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question