What is the best way to make a connection to the database using C #?
Create a USERS table, or create a USER in the database to access?
What is the best way to make a connection to the database using C #?
Create a USERS table, or create a USER in the database to access?
There is no better way. There is the most appropriate for your situation.
If you want to know which is the safest is to use database authentication, although other forms can be very secure if it is right.
But this is not always possible. It is not always what you want. You can:
Finally, there are several situations that are not ideal, then a solution of your own may be more appropriate.
A huge amount of applications only make sense to have your own table of users, especially for web and mobile.
For the case of user authentication I use 3 solutions depending on the case and the client;
x