Table of Contents

Class MappingExtensions

Namespace
Dynamicweb.DataIntegration.Integration
Assembly
Dynamicweb.DataIntegration.dll
public static class MappingExtensions
Inheritance
MappingExtensions
Inherited Members

Methods

GetAutoIdColumnName(string)

Gets the PK Id column

public static string GetAutoIdColumnName(string databaseTableName)

Parameters

databaseTableName string

The table name

Returns

string

The Id column name

GetConditionalSql(string, string, MappingConditional, int, ConditionalGroupOperator)

public static string GetConditionalSql(string conditionalsSql, string columnName, MappingConditional mappingConditional, int conditionalCount, ConditionalGroupOperator groupOperator)

Parameters

conditionalsSql string
columnName string
mappingConditional MappingConditional
conditionalCount int
groupOperator ConditionalGroupOperator

Returns

string

GetConditionalsSql(out List<SqlParameter>, MappingConditionalCollection, bool, bool)

public static string GetConditionalsSql(out List<SqlParameter> parameters, MappingConditionalCollection conditionals, bool skipVirtualColumns, bool useDestinationColumns)

Parameters

parameters List<SqlParameter>
conditionals MappingConditionalCollection
skipVirtualColumns bool
useDestinationColumns bool

Returns

string

GetKeyColumnMappings(IEnumerable<ColumnMapping>)

public static IEnumerable<ColumnMapping> GetKeyColumnMappings(this IEnumerable<ColumnMapping> mappings)

Parameters

mappings IEnumerable<ColumnMapping>

Returns

IEnumerable<ColumnMapping>

GetLanguageIdColumnName(string)

Gets the LanguageId column

public static string GetLanguageIdColumnName(string databaseTableName)

Parameters

databaseTableName string

The table name

Returns

string

The LanguageId column name

GetShopIdColumnName(string)

Gets the ShopId column

public static string GetShopIdColumnName(string databaseTableName)

Parameters

databaseTableName string

The table name

Returns

string

The ShopId column name

IsKeyColumn(Column, IEnumerable<ColumnMapping>)

public static bool IsKeyColumn(this Column column, IEnumerable<ColumnMapping> mappings)

Parameters

column Column
mappings IEnumerable<ColumnMapping>

Returns

bool

IsKeyColumnExists(IEnumerable<ColumnMapping>)

public static bool IsKeyColumnExists(this IEnumerable<ColumnMapping> mappings)

Parameters

mappings IEnumerable<ColumnMapping>

Returns

bool

ReplaceKeyColumnsWithAutoIdIfExists(Mapping)

public static IEnumerable<ColumnMapping> ReplaceKeyColumnsWithAutoIdIfExists(Mapping mapping)

Parameters

mapping Mapping

Returns

IEnumerable<ColumnMapping>
To top