如果你在系统中使用了此架构,请标注出处,谢谢。

////////////////////////////////////////////////////////////////////////////////////////////
///
///    Copyright (C), 2002-2008, Murphy Corporation.
///    
///    FileName:        DBAccess.cs
///    Author:            胡晓伟
///    Version:          Beta
///    Description:    DataAccess Foundation Class : Basic DB Function Class ..
///   
///                    
////////////////////////////////////////////////////////////////////////////////////////////

using System;
using System.Data;
using System.Data.SqlClient;
using System.Data.OleDb;
using System.Data.OracleClient;

using COM.Makinfo.DataEntity;
namespace COM.Makinfo.DataAccess
{
    
public abstract class DBAccess:IDataAccess
    
{
        
/// <summary>
        
/// SQL变量的前缀
        
/// </summary>

        private const string        SQL_PARA_PREFIX = "@";
        
private const string        ACE_PARA_PREFIX = "@";
        
private const string        ORA_PARA_PREFIX = ":";

        
/// <summary>
        
/// 初始化函数。
        
/// </summary>

        public DBAccess()
        
{
        }



        
Properties Properties

        
Functions Functions

        
Generate Command Funcions
    }

    
/// <summary>
    
/// 生成Parameters的参数类.
    
/// </summary>

    public class ParaObject
    
{
        
        
public  ParaObject(object Value,ParameterDirection direct,string Name,System.Type PaType)
        
{
            
this.Value = Value;
            
this.Direct = direct;
            
this.Name = Name;
            
this.PaType = PaType;
        }


        
private object _Value;
        
/// <summary>
        
/// 参数值
        
/// </summary>

        public object Value
        
{
            
get
            
{
                
return this._Value;
            }

            
set
            
{
                
this._Value = value;
            }

        }


        
private ParameterDirection _Direct;
        
/// <summary>
        
/// 方向
        
/// </summary>

        public ParameterDirection Direct
        
{
            
get
            
{
                
return this._Direct;
            }

            
set
            
{
                
this._Direct = value;
            }

        }

        
private string _Name;
        
/// <summary>
        
/// 参数名.
        
/// </summary>

        public string Name
        
{
            
get
            
{
                
return this._Name;
            }

            
set
            
{
                
this._Name = value;
            }

        }

        
        
private System.Type _PaType;
        
/// <summary>
        
/// 参数类型.
        
/// </summary>

        public System.Type PaType
        
{
            
get
            
{
                
return this._PaType;
            }

            
set
            
{
                
this._PaType = value;
            }

        }


    }


}

posted on 2006-07-25 19:52  胡晓伟  阅读(341)  评论(0编辑  收藏  举报