Entity framework error when working with code first approach
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 GetCourses()
{
StudentDBContext studentlist = new StudentDBContext();
return employeelist.Courses.Include("Students").ToList();
}
}
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Tapan PatelRank #614 · 3.9K reputationPosted Aug 8, 2016, 6:25 AM EDT
Bhavik PatelRank #991 · 2K reputationPosted Aug 8, 2016, 5:52 PM EDT