Step 3 - Setting Up Data Access for Your New WCF Service

This step assumes you have already created a business object project for use with your WCF Service.

  1. In the Solution Explorer, select the app.config file to open it in the design surface.

  2. Select the entire <databases> section, then right-click and select Copy from the shortcut menu. Here is an example of the <databases> section:

    <databases>
      <add key="Northwind\Connection" value="server=(local);uid=sa;pwd=kohola;database=NorthWind;" />
      <add key="Northwind\DataAccessClass" value="DataAccessSql" />
      <add key="EntityDataModelContainer\DataAccessClass" value="DataAccessSqlEF" />
    </databases>

  3. In the Solution Explorer, click the Web.config file to select it and replace the entire <databases> node with the XML in your paste buffer.

© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 08/01/17
Comment or report problem with topic