C# 클래스 Goldtect.ASTreeViewDemo.OleDbHelperParameterCache

OleDbHelperParameterCache provides functions to leverage a static cache of procedure parameters, and the ability to discover parameters for stored procedures at run-time.
파일 보기 프로젝트 열기: jinweijie/Goldtect.ASTreeViewSamples

공개 메소드들

메소드 설명
CacheParameterSet ( string connectionString, string commandText ) : void

add parameter array to the cache

GetCachedParameterSet ( string connectionString, string commandText ) : System.Data.OleDb.OleDbParameter[]

retrieve a parameter array from the cache

GetSpParameterSet ( string connectionString, string spName ) : System.Data.OleDb.OleDbParameter[]

Retrieves the set of OleDbParameters appropriate for the stored procedure

This method will query the database for this information, and then store it in a cache for future requests.

GetSpParameterSet ( string connectionString, string spName, bool includeReturnValueParameter ) : System.Data.OleDb.OleDbParameter[]

Retrieves the set of OleDbParameters appropriate for the stored procedure

This method will query the database for this information, and then store it in a cache for future requests.

비공개 메소드들

메소드 설명
CloneParameters ( System.Data.OleDb.OleDbParameter originalParameters ) : System.Data.OleDb.OleDbParameter[]
DiscoverSpParameterSet ( string connectionString, string spName, bool includeReturnValueParameter ) : System.Data.OleDb.OleDbParameter[]

resolve at run-time the appropriate set of OleDbParameters for a stored procedure

OleDbHelperParameterCache ( ) : System

메소드 상세

CacheParameterSet() 공개 정적인 메소드

add parameter array to the cache
public static CacheParameterSet ( string connectionString, string commandText ) : void
connectionString string a valid connection string for an OleDbConnection
commandText string the stored procedure name or T-OleDb command
리턴 void

GetCachedParameterSet() 공개 정적인 메소드

retrieve a parameter array from the cache
public static GetCachedParameterSet ( string connectionString, string commandText ) : System.Data.OleDb.OleDbParameter[]
connectionString string a valid connection string for a OleDbConnection
commandText string the stored procedure name or T-OleDb command
리턴 System.Data.OleDb.OleDbParameter[]

GetSpParameterSet() 공개 정적인 메소드

Retrieves the set of OleDbParameters appropriate for the stored procedure
This method will query the database for this information, and then store it in a cache for future requests.
public static GetSpParameterSet ( string connectionString, string spName ) : System.Data.OleDb.OleDbParameter[]
connectionString string a valid connection string for a OleDbConnection
spName string the name of the stored prcedure
리턴 System.Data.OleDb.OleDbParameter[]

GetSpParameterSet() 공개 정적인 메소드

Retrieves the set of OleDbParameters appropriate for the stored procedure
This method will query the database for this information, and then store it in a cache for future requests.
public static GetSpParameterSet ( string connectionString, string spName, bool includeReturnValueParameter ) : System.Data.OleDb.OleDbParameter[]
connectionString string a valid connection string for an OleDbConnection
spName string the name of the stored procedure
includeReturnValueParameter bool a bool value indicating weather the return value parameter should be included in the results
리턴 System.Data.OleDb.OleDbParameter[]