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
stringThe 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
stringcolumnName
stringmappingConditional
MappingConditionalconditionalCount
intgroupOperator
ConditionalGroupOperator
Returns
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
MappingConditionalCollectionskipVirtualColumns
booluseDestinationColumns
bool
Returns
GetKeyColumnMappings(IEnumerable<ColumnMapping>)
public static IEnumerable<ColumnMapping> GetKeyColumnMappings(this IEnumerable<ColumnMapping> mappings)
Parameters
mappings
IEnumerable<ColumnMapping>
Returns
GetLanguageIdColumnName(string)
Gets the LanguageId column
public static string GetLanguageIdColumnName(string databaseTableName)
Parameters
databaseTableName
stringThe table name
Returns
- string
The LanguageId column name
GetShopIdColumnName(string)
Gets the ShopId column
public static string GetShopIdColumnName(string databaseTableName)
Parameters
databaseTableName
stringThe table name
Returns
- string
The ShopId column name
IsKeyColumn(Column, IEnumerable<ColumnMapping>)
public static bool IsKeyColumn(this Column column, IEnumerable<ColumnMapping> mappings)
Parameters
column
Columnmappings
IEnumerable<ColumnMapping>
Returns
IsKeyColumnExists(IEnumerable<ColumnMapping>)
public static bool IsKeyColumnExists(this IEnumerable<ColumnMapping> mappings)
Parameters
mappings
IEnumerable<ColumnMapping>
Returns
ReplaceKeyColumnsWithAutoIdIfExists(Mapping)
public static IEnumerable<ColumnMapping> ReplaceKeyColumnsWithAutoIdIfExists(Mapping mapping)
Parameters
mapping
Mapping