Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
511 views
in Technique[技术] by (71.8m points)

sapb1 - Creating a EF Core DbContext on a SAP Business One database

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.

question from:https://stackoverflow.com/questions/65846121/creating-a-ef-core-dbcontext-on-a-sap-business-one-database

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

2.1m questions

2.1m answers

60 comments

57.0k users

...