Skip to content
Jay Miller edited this page Jun 24, 2013 · 2 revisions

FluentNHibernate.Cfg.Db.CsharpSqlite offers a reflection-based driver and configuration class to allow the C#-SQLite library to work underneath FluentNHibernate.

Installation

FluentNHibernate.Cfg.Db.CsharpSqlite is available via NuGet. To install it, run the following command in the Package Manager Console:

PM> Install-Package FluentNHibernate.Cfg.Db.CsharpSqlite

Usage

This class may be used exactly like Fluent NHibernate's SqliteConfiguration class. For example:

public IPersistenceConfigurer DatabaseConfig
{
    get { CsharpSqliteConfiguration.Standard.UsingFile(DatabaseFile); }
}

Note that the driver is reflection based, and that the C#-SQLite assemblies must be present in the same directory as the driver assembly.

Clone this wiki locally