Table of Contents

Class BaseSqlProvider

Namespace
Dynamicweb.DataIntegration.Integration
Assembly
Dynamicweb.DataIntegration.dll
[ResponseMapping(true)]
public abstract class BaseSqlProvider : BaseProvider, ISource, IDestination, IParameterizedDestination
Inheritance
BaseSqlProvider
Implements
Derived
Inherited Members
Extension Methods

Properties

TotalRowsAffected

public virtual long TotalRowsAffected { get; set; }

Property Value

long

Methods

GetConnectionString(string?)

protected static string GetConnectionString(string? connectionString)

Parameters

connectionString string

Returns

string

GetSqlSourceSchema(SqlConnection, IEnumerable<string>?)

public static Schema GetSqlSourceSchema(SqlConnection connection, IEnumerable<string>? tableNames = null)

Parameters

connection SqlConnection
tableNames IEnumerable<string>

Returns

Schema

GetTableName(Mapping, bool)

protected static string? GetTableName(Mapping map, bool isSource)

Parameters

map Mapping
isSource bool

Returns

string

GetTableSchema(Mapping, bool)

protected static string? GetTableSchema(Mapping map, bool isSource)

Parameters

map Mapping
isSource bool

Returns

string

LogRunJobError(Exception, Dictionary<string, object>?)

protected void LogRunJobError(Exception ex, Dictionary<string, object>? sourceRow)

Parameters

ex Exception
sourceRow Dictionary<string, object>

OrderItemsByJobMappings<T>(IList<T>, Job, Func<T, string?>, bool)

protected static void OrderItemsByJobMappings<T>(IList<T> entries, Job job, Func<T, string?> tableNameSelector, bool isSource = false)

Parameters

entries IList<T>
job Job
tableNameSelector Func<T, string>
isSource bool

Type Parameters

T

OrderTablesByConstraints(Job, SqlConnection, bool)

protected static void OrderTablesByConstraints(Job job, SqlConnection connection, bool isSource = false)

Parameters

job Job
connection SqlConnection
isSource bool

OrderTablesByConstraints(Job, SqlConnection, bool, Func<string, string?, Table?>?)

protected static void OrderTablesByConstraints(Job job, SqlConnection connection, bool isSource, Func<string, string?, Table?>? getTable)

Parameters

job Job
connection SqlConnection
isSource bool
getTable Func<string, string, Table>

OrderTablesInJob(Job, bool)

public virtual void OrderTablesInJob(Job job, bool isSource)

Parameters

job Job
isSource bool

TryOrderMappingsBySchemaDependencies(Job, bool, Func<string, string?, Table?>?)

protected static bool TryOrderMappingsBySchemaDependencies(Job job, bool isSource, Func<string, string?, Table?>? getTable)

Parameters

job Job
isSource bool
getTable Func<string, string, Table>

Returns

bool

TryOrderTablesInJobUsingSchemaMetadata(Job, bool)

Attempts to order mapped tables by using provider-specific persisted schema metadata instead of querying the database.

public virtual bool TryOrderTablesInJobUsingSchemaMetadata(Job job, bool isSource)

Parameters

job Job

The job whose mappings should be ordered.

isSource bool

true to order source tables; otherwise destination tables.

Returns

bool

true when the provider could order the mappings from persisted metadata alone; otherwise false so the caller can fall back to database-based ordering.

Remarks

The base implementation intentionally returns false. Providers that persist foreign-key metadata, such as SQL-backed providers, override this method to enable in-memory ordering without an extra database lookup during job execution.

To top