Leadtools.Medical.DataAccessLayer Namespace > DataAccessFactory Class : CreateDataAccessAgent<T> Method |
'Usage Dim instance As DataAccessFactory Dim value As T value = instance.CreateDataAccessAgent(Of T)()
function Leadtools.Medical.DataAccessLayer.DataAccessFactory.CreateDataAccessAgent()
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.
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