Error processing SSI file
LEADTOOLS Medical (Leadtools.Medical.DataAccessLayer assembly)

Show in webframe

CreateDataAccessAgent<T> Method






Creates a data provider from the Leadtools.Medical.DataAccessLayer.Configuration.DataAccessMapping.DataAccessType returned from the Leadtools.Medical.DataAccessLayer.Configuration.IDataAccessConfigurationView.
Syntax
public virtual T CreateDataAccessAgent<T>()
'Declaration
 
Public Overridable Function CreateDataAccessAgent(Of T)() As T
'Usage
 
Dim instance As DataAccessFactory
Dim value As T
 
value = instance.CreateDataAccessAgent(Of T)()

            

            
public:
virtual T^ CreateDataAccessAgentgeneric<typename T>
(); 

Type Parameters

T

Return Value

Remarks

This method will not try to create a data provider from the generic type. It will create a provider from the type configured in the Leadtools.Medical.DataAccessLayer.Configuration.IDataAccessConfigurationView.
The user should be responsible of providing the proper type or interface for the returned provider or this method will fail.

This method will create the data provider and pass the connection string for the constructor.

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

Target Platforms

See Also

Reference

DataAccessFactory Class
DataAccessFactory Members

Error processing SSI file
Leadtools.Medical.DataAccessLayer requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features