2
Reply

Entity framework error when working with code first approach

Adewale Adeleye

Adewale Adeleye

Aug 8 2016 9:16 AM
405
Hello everyone.. I just start working with Entity Framework and i encountered an error while using code first approach.  The error i get is  An exception of type 'System.ArgumentException' occurred in System.Data.dll but was not handled in user code Additional information: Unable to find the requested .Net Framework Data Provider. It may not be installed. The code generating the error is public class CourseModel { public List<Course> GetCourses() { StudentDBContext studentlist = new StudentDBContext(); return employeelist.Courses.Include("Students").ToList(); } }

Answers (2)