Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

SqlClient Configuration (Windows Applications)

Aleksey Nemiro edited this page Apr 3, 2014 · 5 revisions

Special configuration for Nemiro.Data class library is not required.

But it is recommended add to configuration file a connection string with name LocalSqlServer.

Open a Project properties.

Project Properties menu item

Click the Settings tab. Create a configuration file, if necessary.

Settings

Add new setting name LocalSqlServer and set yout connection string to the setting value.

LocalSqlServer

This will avoid specifying the connection string in a code.

Enjoy!