Interface IProviderFactory
OptimaJet.Workflow.Api.IProviderFactory
Interface for provider abstract factory used to create data provider and workflow provider implementations.
Namespace: OptimaJet.Workflow.Api
public interface IProviderFactoryProperties
Name
Type
PersistenceProviderId #StringThe identifier of the database management system, for which this factory creates providers. Default identifiers are stored in PersistenceProviderId.
Methods
IDataProvider CreateDataProvider(string connectionString, DataProviderCreationOptions options) #Creates a data provider for the specified connection string and options.
Parameters
Name
Type
Description
connectionStringStringThe connection string to the database.
optionsDataProviderCreationOptionsThe options for configuring the data provider.
Returns
Type
Description
IDataProviderAn instance of IDataProvider.
IWorkflowProvider CreateWorkflowProvider(PersistenceProviderOptions options) #Creates a workflow provider with the specified options.
Parameters
Name
Type
Description
optionsPersistenceProviderOptionsThe options for configuring the workflow provider.
Returns
Type
Description
IWorkflowProviderAn instance of IWorkflowProvider.