Haritha
Haritha

Reputation: 1508

How to access EF Core in-memory db from another application?

I have two applications, one is a Web API, and the other is a scheduled job.

Web API

Scheduled Job service (Background service)

How can I access the data in another application?

Upvotes: 0

Views: 1397

Answers (1)

speciesUnknown
speciesUnknown

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

Related Questions