Table of Contents

Class SqliteDataContextOptionsBuilderExtensions

Namespace
NextORM.Sqlite
Assembly
nextorm.sqlite.dll

Extension methods that configure a DataContextBuilder to use SQLite.

public static class SqliteDataContextOptionsBuilderExtensions
Inheritance
SqliteDataContextOptionsBuilderExtensions
Inherited Members

Methods

UseSqlite(DataContextBuilder, DbConnection)

Configures the builder to create SQLite contexts over the caller-supplied connection.

public static DataContextBuilder UseSqlite(this DataContextBuilder builder, DbConnection connection)

Parameters

builder DataContextBuilder

The builder to configure.

connection DbConnection

An already-created connection owned by the caller.

Returns

DataContextBuilder

The same builder, to allow chaining.

UseSqlite(DataContextBuilder, string)

Configures the builder to create SQLite contexts over the database file at filepath (opened with Data Source='{filepath}').

public static DataContextBuilder UseSqlite(this DataContextBuilder builder, string filepath)

Parameters

builder DataContextBuilder

The builder to configure.

filepath string

Path to the SQLite database file.

Returns

DataContextBuilder

The same builder, to allow chaining.