Class SQLiteDmlService
- Namespace
- LinqToDB.Internal.DataProvider.SQLite
- Assembly
- linq2db.dll
SQLite DML mechanics. An identity insert is split into the insert (non-query) plus a scalar
SELECT last_insert_rowid(); everything else falls back to the legacy command-splitting path.
public sealed class SQLiteDmlService : DmlServiceBase, IDmlService
- Inheritance
-
objectSQLiteDmlService
- Implements
- Inherited Members
- Extension Methods
Methods
BuildCommandScenario(SqlStatement, SqlProviderFlags, ISqlExpressionFactory)
Builds the command scenario for statement. The base handles the InsertOrReplace / Upsert
emulation and otherwise returns a single-step DefaultScenario(SqlStatement) (one statement, one command).
Providers override to build an explicit multi-step scenario (identity retrieval, per-field truncate reset,
etc.), using factory to construct any synthetic statements (e.g. an identity SELECT),
and delegate the default case back here via base.BuildCommandScenario(...).
public override SqlCommandScenario? BuildCommandScenario(SqlStatement statement, SqlProviderFlags flags, ISqlExpressionFactory factory)
Parameters
statementSqlStatementflagsSqlProviderFlagsfactoryISqlExpressionFactory
Returns
IsTableNotFoundExceptionCore(Exception)
Detects a provider-specific "table not found" exception. Called for every link of the inner-exception chain.
protected override bool IsTableNotFoundExceptionCore(Exception exception)
Parameters
exceptionException