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

Popular posts from this blog

PHP DOM loadHTML() method unusual warning -

python - How to create jsonb index using GIN on SQLAlchemy? -

c# - TransactionScope not rolling back although no complete() is called -