Reputation: 6058
I need to select of all fields from a table I try to do this using to following code and I get the error notification class name is not valid at this point
from item in context.CreateQuery<permitdocumentfields>()
where item.Id == new Guid(Request["view"])
select new
{ permitdocumentfields }
How to make this stuff to work like FROM TABLE SELECT *
?
Upvotes: 3
Views: 4775
Reputation: 176956
from item in context.CreateQuery<permitdocumentfields>()
where item.Id == new Guid(Request["view"])
select item
Check the post for more detail : SQL to LINQ ( Visual Representation )
Simple select
Select with the filter and select new
Note : select new
is require when you want to construct new object only.
Upvotes: 10