Table of Contents

Class OracleDmlService

Namespace
LinqToDB.Internal.DataProvider.Oracle
Assembly
linq2db.dll

Oracle DML mechanics. An identity insert returns the generated key through an OUT parameter (the insert renders a trailing RETURNING … INTO :IDENTITY_PARAMETER). A create-table-with-identity emits the table plus a CREATE SEQUENCE and a CREATE OR REPLACE TRIGGER; a truncate-with-identity-reset emits the truncate plus a PL/SQL block that walks the identity sequence back to zero. The auxiliary commands are rendered as SqlRawStatements (identity names carried as SqlObjectNameExpressions so the builder quotes them). Everything else uses the base scenario.

public sealed class OracleDmlService : DmlServiceBase, IDmlService
Inheritance
object
OracleDmlService
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

statement SqlStatement
flags SqlProviderFlags
factory ISqlExpressionFactory

Returns

SqlCommandScenario

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

exception Exception

Returns

bool