Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As DataAccessFactory Dim value As T value = instance.CreateDataAccessAgent(Of T)() |
Type Parameters
- T
Return Value
The data provider object which correspond to the Leadtools.Medical.DataAccessLayer.Configuration.DataAccessMapping.DataAccessType.For an example of using the GetInstance refer to the "Leadtools.Medical.Winforms" project.
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 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: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7