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["v开发者_如何学编程iew"])
select new
{ permitdocumentfields }
How to make this stuff to work like FROM TABLE SELECT *
?
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.
精彩评论