I'm using ASP.net Entity Framework. So I need to call a stored procedure and want to set a data to DateSet.
This is my function
public DataSet SearchEmployee(string name, string dep)
{
db.f_t_PEOPLE_SearchEmployee(name, dep);
return db.f_t_PEOPLE_SearchEmployee(name, dep);
}
but there is error and it says
Cannot implicitly convert type 'object' to 'System.Data.DataSet'. An explicit conversion exists (are you missing a cast?)
DataSetstuff anymore..... EF works hard to convert relational rows and columns into .NET objects - like aPersonor something. So your stored procedure will return a singlePersonor aList<Person>- not a DataSet.....