0

What we have: MySQL, .NET Connector, C#, ADO Model with relations (many to many)

I have three tables: users, groups and usergroups Another program add new items to users and usergroups tables, but then i try to get all users from any group i get no changes. I get changes only if i restart my program. So my question is how to fix it? How to update related objects from database. Or is it possible to turn off caching?

2
  • 1
    show some code so we can work with something:) Commented Nov 13, 2012 at 19:37
  • 1
    Maybe this could help: stackoverflow.com/questions/5221314/… Commented Nov 13, 2012 at 19:41

1 Answer 1

0

The reason you aren't getting any changes is that your DbContext isn't being updated when you do a pull for data, which could explain why it pulls changes only after your program restarts.

Sign up to request clarification or add additional context in comments.

1 Comment

Yes, but... how to update it without restart? I can't track any changes that another program do.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.