views:

1625

answers:

1

I am using entities, C# and SQL Server to create an n-tier app. I am creating some base classes common to all my DAL components. In this base class, i want to handle the connection state of the ObjectContext base class inherited by entities object.

Compiling throws the following error:

The type or namespace name 'Objects' does not exist in the namespace 'System.Data' (are you missing an assembly reference?)

Also, the using statement System.Data.Objects doesn't resolve for the same reason.

I tried adding the assembly as reference, but couldn't find it in the .NET tab of assembly references.

Any thoughts? Thanks!

+4  A: 

You need to add a reference to the .NET assembly System.Data.Entity.dll.

Joshua Belden
It worked! Curious, if the System.Data.objects namespace is indeed present within the System.Data.Entity?
pencilslate