Link copied. Please paste this link to share this article on your social media post.
All DB access in SmartConnector is based on Entity Framework. EF caches extensively and it is possible for your context to have "stale" data if you keep it open for extended periods of time. Create the DbContext when you need it, read/write as needed, and then dispose of it. That is the recommended usage pattern. This is true even if you are in an ILongRunningProcessor.