LEADTOOLS Medical (Leadtools.Medical.DataAccessLayer assembly)
LEAD Technologies, Inc

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 CreateDataAccessAgent<T>()
 function Leadtools.Medical.DataAccessLayer.DataAccessFactory.CreateDataAccessAgent()
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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DataAccessFactory Class
DataAccessFactory Members

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

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