Kerr's Blog

About DAAB Operation No.2

上回说了SQLHelper,这次给大家献上OracleHelper!别的话我就不多说了。 :)

   1//===============================================================================
   2// OracleHelper based on Microsoft Data Access Application Block (DAAB) for .NET
   3// http://msdn.microsoft.com/library/en-us/dnbda/html/daab-rm.asp
   4//
   5// OracleHelper.cs
   6//
   7// This file contains the implementations of the OracleHelper and OracleHelperParameterCache
   8// classes.
   9//
  10// The DAAB for MS .NET Provider for Oracle has been tested in the context of this Nile implementation,
  11// but has not undergone the generic functional testing that the SQL version has gone through.
  12// You can use it in other .NET applications using Oracle databases.  For complete docs explaining how to use
  13// and how it's built go to the originl appblock link. 
  14// For this sample, the code resides in the Nile namespaces not the Microsoft.ApplicationBlocks namespace
  15//==============================================================================
  16
  17using System;
  18using System.Data;
  19using System.Xml;
  20using System.Data.OracleClient;
  21using System.Collections;
  22
  23
  24namespace Microsoft.ApplicationBlocks.Data
  25{
  26    /// <summary>
  27    /// The OracleHelper class is intended to encapsulate high performance, scalable best practices for 
  28    /// common uses of OracleClient.
  29    /// </summary>

  30    public sealed class OracleHelper
  31    {
  32        private utility methods & constructors private utility methods & constructors
 135
 136        ExecuteNonQuery ExecuteNonQuery
 370
 371        ExecuteDataSet ExecuteDataSet
 619        
 620        ExecuteReader ExecuteReader
 897
 898        ExecuteScalar ExecuteScalar
1133    }

1134
1135    /// <summary>
1136    /// OracleHelperParameterCache provides functions to leverage a static cache of procedure parameters, and the
1137    /// ability to discover parameters for stored procedures at run-time.
1138    /// </summary>

1139    public sealed class OracleHelperParameterCache
1140    {
1141        private methods, variables, and constructors private methods, variables, and constructors
1194
1195        caching functions caching functions
1233
1234        Parameter Discovery Functions Parameter Discovery Functions
1277
1278    }

1279}

1280

To be continue...

posted on 2006-03-10 11:40  Kerr  阅读(352)  评论(0编辑  收藏  举报

导航