[HttpPost]
public ActionResult Data (FormCollection form)
{
int qId = Convert.ToInt32(form["EmailAddress"].ToString());
using (var db = new AdventureWorks2014Entities() )
{
ObjectResult<GetEmail_Result> em = db.GetEmail(qId); //error
}
//more code downwards
这是错误消息:
无法隐式转换类型 &#39; System.Data.Entity.Core.Objects.ObjectResult&#39; 至 &#39; System.Data.Objects.ObjectResult&#39;
为什么我收到此错误?