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
providerstring
Returns
GetSourceProviderType(string)
public static Type? GetSourceProviderType(string fileExtension)
Parameters
fileExtensionstring
Returns
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
sourceISourceThe source for which to retrieve the supported table options. Cannot be null.
sourceTableNamestringThe 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
destinationIDestinationThe 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
destinationIDestinationThe destination for which to retrieve the supported table options. Cannot be null.
destinationTableNamestringThe 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
destinationIDestination
Returns
IsDestinationFileProvider(Type)
public static bool IsDestinationFileProvider(this Type type)
Parameters
typeType
Returns
IsReadingSourceXmlFinished(Job)
public static bool IsReadingSourceXmlFinished(this Job job)
Parameters
jobJob
Returns
IsSourceFileProvider(ISource)
public static bool IsSourceFileProvider(this ISource source)
Parameters
sourceISource
Returns
IsSourceFileProvider(Type)
public static bool IsSourceFileProvider(this Type type)
Parameters
typeType
Returns
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
destinationIDestinationThe destination
Returns
SetPrimaryKeyColumn(Table?, string)
public static void SetPrimaryKeyColumn(this Table? table, string columnName)