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
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.
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)