Kerr's Blog

About DAAB Operation No.3

已经讲过SQL SERVER & ORACLE了,今天我们来说道说道OLEDB,也就是大家平时说的ODBC。它可以连接FOXPRO、ACESS、EXCEL等当前诸多的数据类型。如有任何疑问,请给我留言!

//===============================================================================
// OleDbHelper based on Microsoft Data Access Application Block (DAAB) for .NET
// http://msdn.microsoft.com/library/en-us/dnbda/html/daab-rm.asp
//
// OleDbHelper.cs
//
// This file contains the implementations of the OleDbHelper and OleDbHelperParameterCache
// classes.
//
// The DAAB for MS Ole Db access for Oracle has been tested in the context of this Nile implementation,
// but has not undergone the generic functional testing that the SQL version has gone through.
// You can use it in other .NET applications using Oracle databases.  For complete docs explaining how to use
// and how it's built go to the originl appblock link. 
// For this sample, the code resides in the Nile namespaces not the Microsoft.ApplicationBlocks namespace
//==============================================================================

using System;
using System.Data;
using System.Xml;
using System.Data.OleDb;
using System.Collections;


namespace Microsoft.ApplicationBlocks.Data
{
    
/// <summary>
    
/// The OleDbHelper class is intended to encapsulate high performance, scalable best practices for 
    
/// common uses of OleDbClient.
    
/// </summary>

    public sealed class OleDbHelper
    
{
        
private utility methods & constructors private utility methods & constructors

        
ExecuteNonQuery ExecuteNonQuery

        
ExecuteDataSet ExecuteDataSet
        
        
ExecuteReader ExecuteReader

        
ExecuteScalar ExecuteScalar
    }


    
/// <summary>
    
/// OleDbHelperParameterCache provides functions to leverage a static cache of procedure parameters, and the
    
/// ability to discover parameters for stored procedures at run-time.
    
/// </summary>

    public sealed class OleDbHelperParameterCache
    
{
        
private methods, variables, and constructors private methods, variables, and constructors

        
caching functions caching functions

        
Parameter Discovery Functions Parameter Discovery Functions

    }

}

posted on 2006-03-10 13:43  Kerr  阅读(419)  评论(0编辑  收藏  举报

导航