I am trying to run a stored procedure on MySQL with the below code :
List<SqlParameter> parms = new List<SqlParameter> {
new SqlParameter { ParameterName = "@word", Value = word }
};
Object result = _context.History.FromSqlRaw<HistoryDM>("EXEC GETHISTORY", parms.ToArray());
if (result != null)
{
retval = (IEnumerable<HistoryDM>)result;
}
The error I get is : 'DbSet' does not contain a definition for 'FromSqlRaw' and no accessible extension method 'FromSqlRaw' accepting a first argument of type 'DbSet' could be found (are you missing a using directive or an assembly reference?). In fact I don't see any From* methods on that context.
I have no clue what is happening here. after some research, I also added the package "Microsoft.EntityFrameworkCore.Relational" but it did not have remove the error.
Thanks for your help in advance, UU