dotConnect for SQLitesupport@devart.com

Deployment

To deploy applications written with dotConnect for SQLite you should register run-time assemblies Devart.Data.SQLite.dll and Devart.Data.dll at Global Assembly Cache (GAC) for appropriate framework or place them in the folder of your application (Bin folder for web projects). These two assemblies should be available in all applications written with dotConnect for SQLite. Make sure that your project contains the license resource as it is described in Licensing. Also your application should have access to the engine library SQLite3.dll. This library can be located either in the application folder or in a system-wide accessible folder.

When deploying ASP.NET applications , the following additional assemblies may be needed:

When your code uses dotConnect for SQLite via a factory-based class, you should register configuration information in the DbProviderFactories section of the *.config file to inform your environment about the existence of the provider factory. The provider factory is described either in machine.config (globally), in app.config or in web.config (just for your application), but not in both files. This is done as follows:

<system.data>
  <DbProviderFactories>
    <remove invariant="Devart.Data.SQLite" />
    <add name="dotConnect for SQLite" invariant="Devart.Data.SQLite" description="Devart dotConnect for SQLite" type="Devart.Data.SQLite.SQLiteProviderFactory, Devart.Data.SQLite, Version=3.30.196.0, Culture=neutral, PublicKeyToken=09af7300eec23701" />
  </DbProviderFactories>
</system.data>

Replace 3.30.196.0 here with your actual version.


When deploying Entity Framework projects, it is necessary to:

  1. Check if the Devart.Data.SQLite.Entity.dll assembly available for your application. The assembly should reside in the application's folder or in GAC. Be aware that there are two versions of Devart.Data.SQLite.Entity.dll in the folder of provider installation - for Entity Framework v 1 and for Entity Framework v 4.
  2. Inform your environment about the provider factory existence (add the entry to the DbProviderFactories section as it is described above).

If you are registering the provider in the machine.config file, please take into account the Entity Framework version. Entity Framework v1 - specific applications require an entry in the .NET Framework 2.0 configuration file, and Entity Framework v4 - specific applications should be registered in the .NET Framework 4.0 configuration file.

You can also read Microsoft's Deployment Considerations on ADO.NET Entity Framework.

Deploying LightSwitch applications is described here

To deploy applications written with LinqConnect support in dotConnect for SQLite, besides deploying the general assemblies you should register run-time LinqConnect assemblies Devart.Data.SQLite.Linq.dll and Devart.Data.Linq.dll at Global Assembly Cache (GAC) or place them in the folder of your application (the Bin folder for web projects).

Another way to install the needed *.dll is to launch the dotConnect for SQLite setup program and choose "Minimal installation". Note that according to End-User License Agreement this is the only install you can do on target machine. You must not distribute any other part of dotConnect for SQLite.

Applications written with dotConnect for SQLite may not contain the license resource when they are deployed on the target machine where dotConnect for SQLite is installed with "Minimal" option.

When dotConnect for SQLite application is used in partially trusted code (this is actual for web projects), it requires medium trust level.

 

 


© 2002-2012 Devart. All rights reserved.