c# - Refreshing an entire Linq to SQL DataContext -
i maintaining application in c# instantiates datacontext @ outset , uses throughout. finding when 1 user makes changes, changes not reflected on user's system when reload forms (it's winforms app). think root problem data being cached on second user's system due perpetually open datacontext.
given application cannot rewritten use granular datacontexts (which correct solution), i'm looking @ refresh() method way work around problem. problem results want, refresh entire datacontext. obviously, that's not provided option, can effect? refresh() method cascade?
thanks.
you can use unitofwork
pattern in scenario. perform action transaction.
Comments
Post a Comment