Show / Hide Table of Contents

GetAdapter(IDbConnection,String) Method

The database connection this adapter should use when performing database operations

The SQL statement to use as the SELECT command for this adapter

Gets a database type-specific DbDataAdapter instance for this provider type (i.e. SqlDataAdapter for MSSQL) initialized to use the specified connection to the database and the specified SQL statement to execute.

Syntax

'Declaration

Public Overloads MustOverride Function GetAdapter( _
   ByVal _conn_ As IDbConnection, _
   ByVal _sqlStmt_ As String _
) As DbDataAdapter
public abstract DbDataAdapter GetAdapter( 
   IDbConnection _conn_,
   string _sqlStmt_
)

Parameters

conn

The database connection this adapter should use when performing database operations

sqlStmt

The SQL statement to use as the SELECT command for this adapter

Return Value

A DbDataAdapter instance for this provider type (i.e. SqlDataAdapter for MSSQL), initialized to use the specified connection and SELECT SQL statement

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server family

Reference

DbProvider Class
DbProvider Members
Overload List

Back to top © 2022 Dovetail Software, Inc. - All rights reserved.
Clarify, Amdocs, and related products and names are copyright and trademark of Amdocs, Inc.
.NET, Visual Studio.NET, C#, Visual Basic and related products are trademark of Microsoft corporation.