Modifying existing AssociateWith<> in Linq-to-Sql
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.
精彩评论