I am working on an asp.net project that a client gave me access to the database remotely.
There are two users in the database. One user has read-only access, where the other has access to the owner. The client says that for reading data we must use the first, and for inserting, etc. Use the second one.
In addition, the client told me to use stored procedures as much as possible, because there is a lot of data that will come from the db server. I want to use the Entity framework (edmx). Can I use stored procedures with it? Before the Entity framework, I used the corporate library for stored procedures. Do I need to go back and use it with stored procedures so that all database work is done on the db server side instead of transferring data to the web server using the entity infrastructure?
Also, how can I use one user for read-only purposes and another user to access the same db for insertion? Do I need to create two web configurations? Does it make the user read-only and get results faster?
If there is a better approach, please suggest me.
Please offer.
source
share