Reputation: 1508
I have two applications, one is a Web API, and the other is a scheduled job.
Web API
Scheduled Job service (Background service)
DbContext
How can I access the data in another application?
Upvotes: 0
Views: 1397
Reputation: 1753
Your second application must access the DB via the API on the first. You can't access an in-memory database from another process without doing this.
The good news is, this means the first application enables you to expose higher level features than the bare database. This is mostly the entire purpose of a service.
Upvotes: 2