Replaced System.Data.Entity.Core references with System.Data and added using System.Data.Entity where necessary