Table of Contents

Namespace LinqToDB

Classes

AnalyticFunctions
AsyncExtensions

Provides helper methods for asynchronous operations.

CompiledQuery

Provides API for compilation and caching of queries for reuse.

DataContext

Implements abstraction over non-persistent database connection that could be released after query or transaction execution.

DataContextOptions
DataContextTransaction

Explicit data context DataContext transaction wrapper.

DataExtensions

Data context extension methods.

DataOptions

Immutable context configuration object.

DataOptionsExtensions

Set of extensions for DataOptions.

DataOptions<T>

Typed DataOptions wrapper to support multiple option objects registration in DI containers.

ExprParameterAttribute
ExpressionMethodAttribute

When applied to method or property, tells linq2db to replace them in queryable LINQ expression with another expression, returned by method, specified in this attribute.

Requirements to expression method:

- expression method should be in the same class and replaced property of method; - method could be private.

When applied to property, expression: - method should return function expression with the same return type as property type; - expression method could take up to two parameters in any order - current object parameter and database connection context object.

When applied to method: - expression method should return function expression with the same return type as method return type; - method cannot have void return type; - parameters in expression method should go in the same order as in substituted method; - expression could take method instance object as first parameter; - expression could take database connection context object as last parameter; - last method parameters could be ommited from expression method, but only if you don't add database connection context parameter.

ExtensionBuilderExtensions
InterceptorExtensions

Contains extensions that add one-time interceptors to connection.

KeepConnectionAliveScope

Explicit DataContext connection reuse scope. See KeepConnectionAlive for more details.

LinqExtensions

Contains extension methods for LINQ queries.

LinqOptions
LinqToDBConstants
LinqToDBException

Defines the base class for the namespace exceptions.

MergeDefinition<TTarget, TSource>
MergeDefinition<TTarget, TSource>.Operation
MultiInsertExtensions
ProviderName

Default names for providers.

Sql
Sql.AggregateFunctionNotOrderedImpl<T, TR>
Sql.ConvertTo<TTo>
Sql.EnumAttribute
Sql.ExpressionAttribute

An Attribute that allows custom Expressions to be defined for a Method used within a Linq Expression.

Sql.ExtensionAttribute
Sql.ExtensionAttribute.ExtensionBuilder<TContext>
Sql.FunctionAttribute

Defines an SQL server-side Function with parameters passed in.

Sql.PropertyAttribute

An attribute used to define a static value or a Database side property/method that takes no parameters.

Sql.QueryExtensionAttribute

Defines custom query extension builder.

Sql.SqlExtension
Sql.SqlExtensionParam
Sql.SqlRow<T1, T2>
Sql.TableExpressionAttribute
Sql.TableFunctionAttribute
Sql.Types
SqlOptions
StringAggregateExtensions
TableExtensions

Contains extension methods for LINQ queries.

TempTable<T>

Temporary table. Temporary table is a table, created when you create instance of this class and deleted when you dispose it. It uses regular tables even if underlying database supports temporary tables concept.

UpdateOutput<T>

Structs

Sql.SqlID

Interfaces

IDataContext

Database connection abstraction interface.

IExtensionsAdapter

Interface to override default implementation of LINQ To DB async operations.

ILoadWithQueryable<TEntity, TProperty>

Provides support for queryable LoadWith/ThenLoad chaining operators.

ITableMutable<T>

This is internal API and is not intended for use by Linq To DB applications. It may change or be removed without further notice.

ITable<T>

Table-like queryable source, e.g. table, view or table-valued function.

MultiInsertExtensions.IMultiInsertElse<TSource>
MultiInsertExtensions.IMultiInsertInto<TSource>
MultiInsertExtensions.IMultiInsertSource<TSource>
MultiInsertExtensions.IMultiInsertWhen<TSource>
Sql.IAggregateFunctionNotOrdered<T, TR>
Sql.IAggregateFunctionOrdered<T, TR>
Sql.IAggregateFunction<T, TR>
Sql.IExtensionCallBuilder
Sql.IGroupBy
Sql.IQueryableContainer
Sql.ISqExtensionBuilder
Sql.ISqlExtension

Enums

DataType

List of data types, supported by linq2db. Provider-level support depends on database capabilities and current implementation support level and could vary for different providers.

MergeOperationType
Sql.AggregateModifier
Sql.DateParts
Sql.From
Sql.IsNullableType

Provides information when function or expression could return null.

Sql.Nulls
Sql.NullsPosition
Sql.QueryExtensionScope
Sql.SqlIDType
Sql.TableQualification
SqlJoinType

Defines join type. Used with join LINQ helpers.

TableOptions

Provides table mapping flags to specify temporary table kind if mapped table is temporary table and Create/Drop Table API behavior when target table exists/not exists.

TakeHints

Hints for Take Take<TSource>(IQueryable<TSource>, int, TakeHints)Take<TSource>(IQueryable<TSource>, Expression<Func<int>>, TakeHints).

Delegates

InsertColumnFilter<T>

Defines signature for column filter for insert operations.

InsertOrUpdateColumnFilter<T>

Defines signature for column filter for insert or update/replace operations.

UpdateColumnFilter<T>

Defines signature for column filter for update operations.