GetInstance(IDataAccessConfigurationView) Method

Summary
Gets a DataAccessFactory instance to create data providers.
Syntax
C#
VB
C++
  
Public Overloads Shared Function GetInstance( _ 
   ByVal configView As IDataAccessConfigurationView _ 
) As DataAccessFactory 
public: 
static DataAccessFactory^ GetInstance(  
   IDataAccessConfigurationView^ configView 
)  

Parameters

configView
The configuration view which holds the information about the data providers to create.

Return Value

An instance of the DataAccessFactory class.

Remarks

The DataAccessFactory will get the type to create from the Leadtools.Medical.DataAccessLayer.Configuration.DataAccessSettings.DataAccessFactory in the provided configView. If no type is defined in the Leadtools.Medical.DataAccessLayer.Configuration.DataAccessSettings.DataAccessFactory the default DataAccessFactory class will be created.

This allows developers to override the default factory used to create the data access providers by providing their custom factories and take control of the creation method.

Example

For an example of using the GetInstance(IDataAccessConfigurationView) method refer to the "Leadtools.Medical.Winforms" project.

Requirements

Target Platforms

Help Version 21.0.2021.6.30
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Medical.DataAccessLayer Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.