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
Methods
GetConnectionString(string?)
protected static string GetConnectionString(string? connectionString)
Parameters
connectionStringstring
Returns
GetSqlSourceSchema(SqlConnection, IEnumerable<string>?)
public static Schema GetSqlSourceSchema(SqlConnection connection, IEnumerable<string>? tableNames = null)
Parameters
connectionSqlConnectiontableNamesIEnumerable<string>
Returns
GetTableName(Mapping, bool)
protected static string? GetTableName(Mapping map, bool isSource)
Parameters
Returns
GetTableSchema(Mapping, bool)
protected static string? GetTableSchema(Mapping map, bool isSource)
Parameters
Returns
LogRunJobError(Exception, Dictionary<string, object>?)
protected void LogRunJobError(Exception ex, Dictionary<string, object>? sourceRow)
Parameters
exExceptionsourceRowDictionary<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
Type Parameters
T
OrderTablesByConstraints(Job, SqlConnection, bool)
protected static void OrderTablesByConstraints(Job job, SqlConnection connection, bool isSource = false)
Parameters
jobJobconnectionSqlConnectionisSourcebool
OrderTablesByConstraints(Job, SqlConnection, bool, Func<string, string?, Table?>?)
protected static void OrderTablesByConstraints(Job job, SqlConnection connection, bool isSource, Func<string, string?, Table?>? getTable)
Parameters
OrderTablesInJob(Job, bool)
public virtual void OrderTablesInJob(Job job, bool isSource)
Parameters
TryOrderMappingsBySchemaDependencies(Job, bool, Func<string, string?, Table?>?)
protected static bool TryOrderMappingsBySchemaDependencies(Job job, bool isSource, Func<string, string?, Table?>? getTable)
Parameters
Returns
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
jobJobThe job whose mappings should be ordered.
isSourcebooltrueto order source tables; otherwise destination tables.
Returns
- bool
truewhen the provider could order the mappings from persisted metadata alone; otherwisefalseso 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.