Skip to content
This repository has been archived by the owner on Sep 30, 2024. It is now read-only.

Commit

Permalink
chore: update web.config readme details
Browse files Browse the repository at this point in the history
  • Loading branch information
justinlettau committed Jan 16, 2019
1 parent 381f728 commit 6d9a932
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,14 +220,24 @@ Basic connections.
}
```

Connections stored in `Web.config` file.
Connections stored in `Web.config` file. The `Web.config` should be an XML [.NET config file](https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/connection-strings-and-configuration-files).

```json
{
"connections": "./Web.config"
}
```

Connection strings can follow any of the following formats:

```xml
<connectionStrings>
<add name="Example1" connectionString="server=MySqlServer;database=MySqlDb;uid=MyUsername;password=MyPassword;" />
<add name="Example2" connectionString="server=MySqlServer;database=MySqlDb;uid=MyUsername;pwd=MyPassword;" />
<add name="Example3" connectionString="server=MySqlServer,1433;database=MySqlDb;uid=MyUsername;pwd=MyPassword;" />
</connectionStrings>
```

Connections stored in separate JSON file. Storing connections in a separate JSON can be used in conjunction with a
`.gitignore` entry to prevent user connections or sensitive data from being committed.

Expand Down

0 comments on commit 6d9a932

Please sign in to comment.