That's actually an Enterprise Library thing. If you open your web.config or app.config file in the EL Configuration Tool and click on the Data Access Application Block, one of the node properties is DefaultDatabase. Set this to the name of the connection string you want to use as the default.
As an alternative, you can always specify which connection string you want in code:
- Code: Select all
Restaurant r = new Restaurant();
r.DatabaseInstanceName = \"LocalSqlServer\";