Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Administration
 Is the DbContext class defined and used different?

Author  Topic 

Xarzu
Starting Member

25 Posts

Posted - 2012-09-26 : 18:11:18
Is the DbContext class defined and used differently in the version of C# for Visual Studio 2012 than in Visual Studio 2010?

I am using code written under Visual Studio 2010 as an example for a project I am writing for with Visual Studio 2012. I am having some difficulty using the DBContext class to instantiate a class. The code seems to required using the namespace System.Data.Entity.Infrastructure; and that does not seem to be defined in the newer System.Data.Entity reference.

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2012-09-26 : 18:21:30
It doesn't seem like you have a SQL Server question, so I would suggest posting your question on a Visual Studio forum instead.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page
   

- Advertisement -