A
A
Alexey Romanchenko2018-11-08 16:42:34
ASP.NET
Alexey Romanchenko, 2018-11-08 16:42:34

Dynamic connection string in asp net mvc?

Hello. There is an application written in asp net mvc, I had to change the database and the new database manager made the separation of roles and information at the database level, i.e. Each user of the system has its own database user. (When a user logs in to the application, his login and password are inserted into the connection string) The question is - how can I store such a connection string in the application? Something in general, ideas are either bad or very bad, completely hopeless. Guess who can do something like this? Or knows how to do it?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mletov, 2018-11-08
@romanchenkoalexey

You can simply store wildcards like "Server=MyServer;[email protected];[email protected]" and substitute them for each user.
I'm embarrassed that I have to store it in the open. Or you need to encrypt by key and decrypt on the fly.

A
Alexander Taratin, 2018-11-08
@Taraflex

the baseman made the separation of roles and information at the database level, i.e., each user of the system has its own database user.

Say that you do not accept the work and ask to redo it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question