I am wondering about designing a EF core model of the SAP B1 database. I realize that this is a major undertaking, but I aim to start small. This is mainly as an exercise, which may lead to something in the future. My main issue right now, is to ensure that the DbContext is read-only.
I have found several suggestions, like this one: How to make Entity Framework Data Context Readonly
However, that is for the Entity Framework "standard" not core, and the accepted solution does not seem to be possible with EF Core.
So, aside from using a login without write permissions, how would I go about making a read-only DbContext?
I am using EF Core 5.0.
2.1m questions
2.1m answers
60 comments
57.0k users