Converting Linq to Sql query to Linq to entity
ASP.NET
2
Posts
1
Posters
0
Views
1
Watching
-
Hi, I tried running the following linq to sql query in linq to entity
var req = dbContext.Requisitions.First(r=>r.ID==new Guid(Request\["ReqID"\]));
I got the following error "Only parameterless constructors and initializers are supported in LINQ to Entities." Any ideas how to go about this? Thanks
-
Hi, I tried running the following linq to sql query in linq to entity
var req = dbContext.Requisitions.First(r=>r.ID==new Guid(Request\["ReqID"\]));
I got the following error "Only parameterless constructors and initializers are supported in LINQ to Entities." Any ideas how to go about this? Thanks