I have looked through the posts but can't see a reference to my problem.
I have just started going through the book, 2nd Edition and am having trouble with the first query example, 3.1. It runs fine as written in 3.1, but when I try to change "var contacts = context.Contacts;" to "ObjectSet<Contact> contacts = context.Contacts;" I get the following error:
Error 2 Cannot implicitly convert type 'System.Data.Entity.DbSet<Chapter2ConsoleApp.Contact>' to 'System.Data.Objects.ObjectSet<Chapter2ConsoleApp.Contact>' c:\users\chris\documents\visual studio 2012\Projects\Chapter2ConsoleApp\Chapter2ConsoleApp\Program.cs 25 47 Chapter2ConsoleApp
I have included:
using System;
using System.Data.Objects;
using System.Data;
using System.Data.Entity;
using System.Data.SqlClient;
using System.Collections.Generic;
using System.Linq;
using System.Text;
Have I missed a reference? Or is something else wrong?
Grateful for any assistance.
Chris H












