Table of Contents

Class ProviderExtensions

Namespace
Dynamicweb.DataIntegration.ProviderHelpers
Assembly
Dynamicweb.DataIntegration.dll
public static class ProviderExtensions
Inheritance
ProviderExtensions
Inherited Members

Methods

GetDestinationProvider(string)

public static IDestination? GetDestinationProvider(string provider)

Parameters

provider string

Returns

IDestination

GetSourceProviderType(string)

public static Type? GetSourceProviderType(string fileExtension)

Parameters

fileExtension string

Returns

Type

GetSourceTableOptions(ISource, string?)

Retrieves a dictionary of table options the specified source supports for the given source table.

public static Dictionary<string, string> GetSourceTableOptions(this ISource source, string? sourceTableName)

Parameters

source ISource

The source for which to retrieve the supported table options. Cannot be null.

sourceTableName string

The name of the source table the options are for, or null when unknown.

Returns

Dictionary<string, string>

A dictionary where the keys are the names of the table options and the values are their descriptions; empty when the source supports no options for the table.

Remarks

The EcomProvider supports applying language and variant fallback to shared category fields when exporting EcomProducts.

GetTableOptions(IDestination)

Retrieves a dictionary of table options supported by the specified destination.

public static Dictionary<string, string> GetTableOptions(this IDestination destination)

Parameters

destination IDestination

The destination for which to retrieve the supported table options. Cannot be null.

Returns

Dictionary<string, string>

A dictionary where the keys are the names of the table options and the values are their descriptions. Only options supported by the specified destination are included.

Remarks

This method filters out any table options that are not supported by the specified destination. The returned dictionary can be used to display or configure table options for the destination.

GetTableOptions(IDestination, string?)

Retrieves a dictionary of table options supported by the specified destination for the given destination table.

public static Dictionary<string, string> GetTableOptions(this IDestination destination, string? destinationTableName)

Parameters

destination IDestination

The destination for which to retrieve the supported table options. Cannot be null.

destinationTableName string

The name of the destination table the options are for, or null when unknown.

Returns

Dictionary<string, string>

A dictionary where the keys are the names of the table options and the values are their descriptions. Only options supported by the specified destination and table are included.

Remarks

Some options only apply to a single destination table (for example the EcomProvider option that updates all existing products matching the key only applies to EcomProducts). Such options are only returned when destinationTableName names that table.

IsDestinationFileProvider(IDestination)

public static bool IsDestinationFileProvider(this IDestination destination)

Parameters

destination IDestination

Returns

bool

IsDestinationFileProvider(Type)

public static bool IsDestinationFileProvider(this Type type)

Parameters

type Type

Returns

bool

IsReadingSourceXmlFinished(Job)

public static bool IsReadingSourceXmlFinished(this Job job)

Parameters

job Job

Returns

bool

IsSourceFileProvider(ISource)

public static bool IsSourceFileProvider(this ISource source)

Parameters

source ISource

Returns

bool

IsSourceFileProvider(Type)

public static bool IsSourceFileProvider(this Type type)

Parameters

type Type

Returns

bool

IsTableOptionsFeatureSupported(IDestination)

Determines whether the specified destination supports the table options feature. This feature is available for SqlProvider, EcomProvider, DynamicwebProvider, XmlProvider, UserProvider, and OrderProvider.

public static bool IsTableOptionsFeatureSupported(this IDestination destination)

Parameters

destination IDestination

The destination

Returns

bool

SetPrimaryKeyColumn(Table?, string)

public static void SetPrimaryKeyColumn(this Table? table, string columnName)

Parameters

table Table
columnName string
To top