Hello!!
I have the following code...
int convertedId = Int32.Parse(id);
var res = from p in rms_cntxt.Rms
where p.RmsNbr == convertedId
select p;
return View("Edit", res);
The consumer of this return 'res' results in this error
The model item passed into the dictionary is of type 'Devart.Data.Linq.DataQuery`1[RMS1.Rms]' but this dictionary requires a model item of type 'RMS1.Rms'.
Changing the 'var' to 'Rms' does not fix things - that results in
Cannot implicitly convert type 'System.Linq.IQueryable' to
'RMS1.Rms'. An explicit conversion exists (are you missing a cast?).
So I don't know how to fix this - hoping for suggestions.
Thanks, Bill