开发者

Linq from TABLE select *

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

Linq from TABLE select *

Select with the filter and select new

Linq from TABLE select *

Note : select new is require when you want to construct new object only.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜