Creates a data source reading from any IDbConnection.
Please note, the connection must not be opened already,
as this is handled by the data source itself.
Namespace:
InfigoSDKAssembly: InfigoSDK (in InfigoSDK.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C# |
---|
public static IInfigoDataSource CreateIDbConnectionDataSource( IDbConnection connection, string strQuery ) |
Visual Basic (Declaration) |
---|
Public Shared Function CreateIDbConnectionDataSource ( _ connection As IDbConnection, _ strQuery As String _ ) As IInfigoDataSource |
Visual C++ |
---|
public: static IInfigoDataSource^ CreateIDbConnectionDataSource( IDbConnection^ connection, String^ strQuery ) |
Parameters
- connection
- Type: System.Data..::.IDbConnection
The IDbConnection object to use for the data source.
- strQuery
- Type: System..::.String
The query string used to generate the reading object.