Support for Entity Framework 6.x (EF6) is implemented in a separate DLL named Ctree.Data.EntityFramework.dll.
Support for previous versions, up to EF4, is available as the Ctree.Data.SqlClient.Entity namespace inside the ADO.NET provider DLL (Ctree.Data.SqlClient.dll). See ADO.NET Entity Framework V2 - V4 Support.
To test or use the EF6 support, the following steps must be taken:
Note: This support has been tested with Visual Studio 2012 and 2013.
Be sure your FairCom DB package is installed. If you used the .zip installer, be sure you have executed <faircom>\tools\SetUp\FairComConfig.exe to register the ADO.NET driver.
<provider invariantName="System.Data.SqlClient" type="System.Data.Entity.SqlServer.SqlProviderServices, EntityFramework.SqlServer" />
with:
<provider invariantName="Ctree.Data.SqlClient" type="Ctree.Data.EntityFramework.CtreeSqlProviderServices, Ctree.Data.EntityFramework" />
Note: If the FairCom DB SQL datasource is not listed among the available datasources, you did not properly register the datasource for the version of Visual Studio you are using. Please refer to ADO.NET installation documentation for information on how to register the datasource. For a quick registration in Visual Studio 2012, locate the FairComDDEXProvider_v11_Config.reg file in the win*\bin\sql.ado.net directory, double-click it, and click OK on all confirmation dialogs.
Note: Remember that, to properly work in the EF6 environment, the tables should have a "primary key" defined.
If everything works as expected, a model (.edmx file) will be generated.