smart-tag use

I'm brand new to LINQPad. I have been working through the examples in a book entitled "Building Interactive Queries with LINQPad". One of the examples has this code:

void Main()
DbContext context;

// Define ...

In the example a smart-tag has popped up with 2 options:
using System.Data.Entity

When I enter the same code into LINQPad I get a popup with:
using System.Runtime.Remoting.Contexts

I have added all 4 options to the Additional Namespace Imports but the red squiggle does not go away. What am I missing?



  • It looks like this example relies on a version of Entity Framework which is not part of the .NET Framework. You'll first have to add a reference to EntityFramework.dll. The easiest way to do this is to go to NuGet Package Manager (on the Query menu) and add the EntityFramework package. Then the smart tag will work correctly.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!