page header

Database Drivers

The LLBLGen Pro system uses specific database drivers per database vendor, using the 'provider model'. The drivers themselves use the ADO.NET DbProviderFactory system to avoid a hard-linked reference to a specific ADO.NET provider assembly version. The drivers are exclusively used by the designer, the generated code uses the SQL engines of the chosen target framework. LLBLGen Pro ships with the following drivers:

A database driver is used to connect to a database server and to retrieve all available schema information for the credentials and connection information specified. This information is then stored in LLBLGen Pro's own format inside the project in Relational Model Data storage containers.

note Note:

As the LLBLGen Pro designer works with the .NET 2.0+ DbProviderFactory system, it's key that all ADO.NET providers used by you are built for .NET 2.0 and support the DbProviderFactory system. E.g. for Oracle ODP.NET, older .NET 1.x 9i builds aren't supported as they don't support DbProviderFactory. When in doubt, download the latest ADO.NET provider for your database from the vendor's website.


Supported features per database driver

Each database driver supports a variety of features and these are listed below.

General

Each driver which supports unique constraints will only retrieve unique constraint meta-data, not unique indexes. The drivers consider indexes as part of the data, not the model. Unique indexes are therefore ignored. If you have unique indexes instead of unique constraints in your database, please define them as unique constraints with separate indexes instead. The unique constraints are then picked up by the drivers.

Microsoft SQL Server
Oracle, using ODP.NET
Oracle, using Microsoft Oracle Client (System.Data.OracleClient)

For supported features, see Oracle (ODP.NET). Microsoft's Oracle provider requires an Oracle client present on the system, please consult the Microsoft Oracle provider documentation in the .NET reference manual.

Restrictions in the Microsoft Oracle provider:
Firebird
PostgreSql
note Note:

To make the designer work with the Npgsql ADO.NET provider installed on your system, make sure the DbProviderFactory declaration for the Npsql ADO.NET provider in the LLBLGenPro.exe.config file in the LLBLGen Pro installation folder matches the version and file path of your system. The Npsql ADO.NET provider doesn't install itself in the machine.config so its DbProviderFactory isn't known by the .NET CLR and has to be defined on a per-application basis through the application's .config file.


Microsoft Access

Required for Microsoft Access: OleDB driver for Jet v4.0, which is shipped with MDAC 2.5 or higher (a requirement for .NET so these are installed) and a .mdb file in the MS Access 2000 format or higher. For MS Access 2007/2010/2013, an OleDB ACE driver v12 or higher is required.

note Note:

If you want to run LLBLGen Pro on a 64bit windows system and you want to retrieve Relational Model Data from an MS Access database, you will run into the limitation that Microsoft still hasn't shipped a 64bit MS Access JET driver. To overcome this, please run the LLBLGen Pro designer as a 32bit application. To do so, please use the 32bit enforcer helper executable LLBLGenPro_x86.exe which is located in the LLBLGen Pro installation folder and which will run the designer in 32bit, regardless whether you have a 64bit OS or not.

If you want to use the newer Microsoft Access Database Engine (ACE driver) which is supported on 64bit windows and which can also work with .accdb files (MS Access 2007/2010/2013), please visit this link at the Microsoft download center to obtain the engine to make the LLBLGen Pro MS Access driver work properly on 64bit and with .accdb files.

IBM DB2 UDB

Required for DB2: IBM DB2 .NET provider, shipped with the latest ClientAccess version, also available through the DB2 personal edition installation, or through the IBM website for DB2 licensees.

MySql

Required for MySql: DevArt's MySqlDirect.NET provider v5.x or higher.

Sybase Adaptive Server Enterprise (ASE)
Sybase iAnywhere (ASA)

LLBLGen Pro Designer v4.0 documentation. ©2002-2013 Solutions Design