开发者

Modifying existing AssociateWith<> in Linq-to-Sql

开发者 https://www.devze.com 2022-12-16 08:56 出处:网络
I have some linq-to-sql where we use Associate开发者_开发百科With<> to limit some of the records to only those for a particular user. I might -in some cases- want to limit those records to a specif

I have some linq-to-sql where we use Associate开发者_开发百科With<> to limit some of the records to only those for a particular user. I might -in some cases- want to limit those records to a specific date too. Once I have created my option.AssociateWith(....), can I modify it? If so, how? thanks!


MSDN says that there is no possibility to achieve this keeping the DataContext instance (see the Rules section). So dispose the context and reassign the DataLoadOptions.

0

精彩评论

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