开发者

Exclude a field from LinqToSql generated class item list

开发者 https://www.devze.com 2023-02-05 17:17 出处:网络
Is it possible to exclude a field from a collection of linq to sql generated class items. A database table contains field of Image data type. The table has a lot of data inserted, so the programm dies

Is it possible to exclude a field from a collection of linq to sql generated class items.

A database table contains field of Image data type. The table has a lot of data inserted, so the programm dies when I try to receive all the items inserted. I need to have all the information except this field.

Sample code looks like:

arc_developDataContext _dataContext = new arc_developDataContext(connectionString);
_dataContext.a开发者_如何学编程rcs.OrderByDescending(a => a.arc_id)


Is this not what the 'Delay Loaded' property is for? See here for more information

0

精彩评论

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