public class ABusinessObject : mmBusinessObject { public ABusinessObject() { DatabaseKey = "Northwind"; } }I set the connection string and DataAccessClass in my app.config as seen below:
<?xml version="1.0" encoding="utf-8" ?> <configuration> <configSections> <section name="databases" type="System.Configuration.NameValueSectionHandler" /> </configSections> <appSettings> <add key="SecurityDatabaseKey" value="" /> <add key="EventLog\Level" value="Verbose" /> <add key="EventLog\Name" value="Application" /> <add key="EventLog\Machine" value = "." /> <add key="TraceLog\Level" value="Verbose" /> <add key="TraceLog\Name" value="Application" /> <add key="TraceLog\Machine" value = "." /> <add key="TransactionLog\Level" value="Verbose" /> <add key="TransactionLog\Name" value="Application" /> <add key="TransactionLog\Machine" value = "." /> <add key="LocalizeApp" value="false" /> </appSettings> <databases> <!--<add key="Northwind\Connection" value="server=(local);Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Northwind" />--> <add key="Northwind\Connection" value="Provider=vfpoledb.1;Data Source=C:\Program Files\Microsoft Visual FoxPro 8\Samples\Northwind\Northwind.dbc" /> <add key="Northwind\DataAccessClass" value="DataAccessOleDb"/> </databases> <system.windows.forms jitDebugging="true" /> </configuration>I receieve the error: "Keyword not supported: 'provider' " when I press btnGetOrders in the Windows Forms application (have not tried the web app yet).