Step 2: Specifying the Security Database
In this step you store the security database key in your application's config file. The security database is the database you added security tables to in the previous step.
Note: You can skip this step if your application only uses a single database as specified in the <databases> node of the application configuration file, and the security tables are found in this database.
- Go to the VS Solution Explorer and double-click your config file.
- Scroll towards the bottom of the config file and set the SecurityDatabaseKey value to the database key of the database that contains (or will contain) your security tables (such as User, Role, Security).
For example:
<add key="SecurityDatabaseKey" value="Northwind" />
This should point to a database key specified in the <databases> node of your config file. For example:
<databases> <add key="Northwind\Connection" value="server=(local);uid=sa;pwd=;database=Northwind;" /> <add key="Northwind\DataAccessClass" value="DataAccessSql" /> </databases>
© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 12/13/06
Comment or report problem with topic
