356 lines
8.9 KiB
C#
356 lines
8.9 KiB
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Text;
|
|||
|
|
using CYQ.Data.Table;
|
|||
|
|
using System.Data.Common;
|
|||
|
|
using System.Data;
|
|||
|
|
|
|||
|
|
namespace CYQ.Data.Aop
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// Aop<6F><70><EFBFBD><EFBFBD><EFBFBD><EFBFBD>Ϣ
|
|||
|
|
/// </summary>
|
|||
|
|
public partial class AopInfo
|
|||
|
|
{
|
|||
|
|
// internal bool IsCustomAop = false;
|
|||
|
|
|
|||
|
|
private string _TableName;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string TableName
|
|||
|
|
{
|
|||
|
|
get { return _TableName; }
|
|||
|
|
set { _TableName = value; }
|
|||
|
|
}
|
|||
|
|
//private bool _IsView;
|
|||
|
|
///// <summary>
|
|||
|
|
///// <20>Ƿ<EFBFBD><C7B7><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ͼ<EFBFBD><CDBC><EFBFBD>䣩
|
|||
|
|
///// </summary>
|
|||
|
|
//public bool IsView
|
|||
|
|
//{
|
|||
|
|
// get { return _IsView; }
|
|||
|
|
// set { _IsView = value; }
|
|||
|
|
//}
|
|||
|
|
// private DalType _DalType = DalType.None;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>(ֻ<><D6BB>)
|
|||
|
|
/// </summary>
|
|||
|
|
public DalType DalType
|
|||
|
|
{
|
|||
|
|
get
|
|||
|
|
{
|
|||
|
|
if (MAction != null)
|
|||
|
|
{
|
|||
|
|
return MAction.DalType;
|
|||
|
|
}
|
|||
|
|
else if (MProc != null)
|
|||
|
|
{
|
|||
|
|
return MProc.DalType;
|
|||
|
|
}
|
|||
|
|
return DalType.None;
|
|||
|
|
//if (_DalType == DalType.None)
|
|||
|
|
//{
|
|||
|
|
// if (MAction != null)
|
|||
|
|
// {
|
|||
|
|
// _DalType = MAction.DalType;
|
|||
|
|
// }
|
|||
|
|
// else if (MProc != null)
|
|||
|
|
// {
|
|||
|
|
// _DalType = MProc.DalType;
|
|||
|
|
// }
|
|||
|
|
//}
|
|||
|
|
//return _DalType;
|
|||
|
|
}
|
|||
|
|
//set { _DalType = value; }
|
|||
|
|
}
|
|||
|
|
// private string _DataBase;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD>ݿ<EFBFBD><DDBF><EFBFBD><EFBFBD><EFBFBD>(ֻ<><D6BB>)
|
|||
|
|
/// </summary>
|
|||
|
|
public string DataBase
|
|||
|
|
{
|
|||
|
|
get {
|
|||
|
|
if (MAction != null)
|
|||
|
|
{
|
|||
|
|
return MAction.dalHelper.DataBase;
|
|||
|
|
}
|
|||
|
|
else if (MProc != null)
|
|||
|
|
{
|
|||
|
|
return MProc.dalHelper.DataBase;
|
|||
|
|
}
|
|||
|
|
return string.Empty;
|
|||
|
|
//if (string.IsNullOrEmpty(_DataBase))
|
|||
|
|
//{
|
|||
|
|
// if (MAction != null)
|
|||
|
|
// {
|
|||
|
|
// _DataBase = MAction.dalHelper.DataBase;
|
|||
|
|
// }
|
|||
|
|
// else if (MProc != null)
|
|||
|
|
// {
|
|||
|
|
// _DataBase = MProc.dalHelper.DataBase;
|
|||
|
|
// }
|
|||
|
|
//}
|
|||
|
|
//return _DataBase;
|
|||
|
|
}
|
|||
|
|
// set { _DataBase = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
private object _AopPara;
|
|||
|
|
/// <summary>
|
|||
|
|
/// AOP<4F><50><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public object AopPara
|
|||
|
|
{
|
|||
|
|
get { return _AopPara; }
|
|||
|
|
set { _AopPara = value; }
|
|||
|
|
}
|
|||
|
|
private bool _IsTransaction;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public bool IsTransaction
|
|||
|
|
{
|
|||
|
|
get { return _IsTransaction; }
|
|||
|
|
set { _IsTransaction = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
public partial class AopInfo
|
|||
|
|
{
|
|||
|
|
private MAction _MAction;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD>ĵĴ<C4B5><C4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public MAction MAction
|
|||
|
|
{
|
|||
|
|
get { return _MAction; }
|
|||
|
|
set { _MAction = value; }
|
|||
|
|
}
|
|||
|
|
private List<MDataTable> _TableList;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD>б<EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public List<MDataTable> TableList
|
|||
|
|
{
|
|||
|
|
get { return _TableList; }
|
|||
|
|
set { _TableList = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private MDataTable _Table;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD>ݱ<EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public MDataTable Table
|
|||
|
|
{
|
|||
|
|
get { return _Table; }
|
|||
|
|
set { _Table = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private MDataRow _Row;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public MDataRow Row
|
|||
|
|
{
|
|||
|
|
get { return _Row; }
|
|||
|
|
set { _Row = value; }
|
|||
|
|
}
|
|||
|
|
private object _Where;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><>ѯ<EFBFBD><D1AF><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public object Where
|
|||
|
|
{
|
|||
|
|
get { return _Where; }
|
|||
|
|
set { _Where = value; }
|
|||
|
|
}
|
|||
|
|
private bool _AutoSetValue;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>Զ<EFBFBD><D4B6><EFBFBD>Form<72><6D><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ȡֵ[<5B><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʱʹ<CAB1><CAB9>]
|
|||
|
|
/// </summary>
|
|||
|
|
public bool AutoSetValue
|
|||
|
|
{
|
|||
|
|
get { return _AutoSetValue; }
|
|||
|
|
set { _AutoSetValue = value; }
|
|||
|
|
}
|
|||
|
|
private InsertOp _InsertOp;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD>ݲ<EFBFBD><DDB2><EFBFBD>ѡ<EFBFBD><D1A1>
|
|||
|
|
/// </summary>
|
|||
|
|
public InsertOp InsertOp
|
|||
|
|
{
|
|||
|
|
get { return _InsertOp; }
|
|||
|
|
set { _InsertOp = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private int _PageIndex;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><>ҳ<EFBFBD><D2B3>ʼҳ
|
|||
|
|
/// </summary>
|
|||
|
|
public int PageIndex
|
|||
|
|
{
|
|||
|
|
get { return _PageIndex; }
|
|||
|
|
set { _PageIndex = value; }
|
|||
|
|
}
|
|||
|
|
private int _PageSize;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><>ҳÿҳ<C3BF><D2B3><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public int PageSize
|
|||
|
|
{
|
|||
|
|
get { return _PageSize; }
|
|||
|
|
set { _PageSize = value; }
|
|||
|
|
}
|
|||
|
|
private string _UpdateExpression;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD>²<EFBFBD><C2B2><EFBFBD><EFBFBD>ĸ<EFBFBD><C4B8>ӱ<EFBFBD><D3B1><EFBFBD>ʽ<EFBFBD><CABD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string UpdateExpression
|
|||
|
|
{
|
|||
|
|
get
|
|||
|
|
{
|
|||
|
|
return _UpdateExpression;
|
|||
|
|
}
|
|||
|
|
set
|
|||
|
|
{
|
|||
|
|
_UpdateExpression = value;
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private object[] _SelectColumns;
|
|||
|
|
/// <summary>
|
|||
|
|
/// ָ<><D6B8><EFBFBD>IJ<EFBFBD>ѯ<EFBFBD><D1AF>
|
|||
|
|
/// </summary>
|
|||
|
|
public object[] SelectColumns
|
|||
|
|
{
|
|||
|
|
get { return _SelectColumns; }
|
|||
|
|
set { _SelectColumns = value; }
|
|||
|
|
}
|
|||
|
|
private bool _IsSuccess;
|
|||
|
|
/// <summary>
|
|||
|
|
/// Begin<69><6E><EFBFBD><EFBFBD><EFBFBD>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD>óɹ<C3B3>[<5B><>End<6E><64>ʹ<EFBFBD><CAB9>]
|
|||
|
|
/// </summary>
|
|||
|
|
public bool IsSuccess
|
|||
|
|
{
|
|||
|
|
get { return _IsSuccess; }
|
|||
|
|
set { _IsSuccess = value; }
|
|||
|
|
}
|
|||
|
|
private int _RowCount;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><>ѯʱ<D1AF><CAB1><EFBFBD>صļ<D8B5>¼<EFBFBD><C2BC><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ExeNonQuery<72>ķ<EFBFBD><C4B7><EFBFBD>ֵ
|
|||
|
|
/// </summary>
|
|||
|
|
public int RowCount
|
|||
|
|
{
|
|||
|
|
get { return _RowCount; }
|
|||
|
|
set { _RowCount = value; }
|
|||
|
|
}
|
|||
|
|
private List<AopCustomDbPara> _CustomDbPara;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>û<EFBFBD><C3BB><EFBFBD><EFBFBD><EFBFBD>SetPara<72><61><EFBFBD><EFBFBD><EFBFBD>ӵ<EFBFBD><D3B5>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public List<AopCustomDbPara> CustomDbPara
|
|||
|
|
{
|
|||
|
|
get { return _CustomDbPara; }
|
|||
|
|
set { _CustomDbPara = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
public partial class AopInfo
|
|||
|
|
{
|
|||
|
|
private MProc _MProc;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><>ǰ<EFBFBD><C7B0><EFBFBD><EFBFBD><EFBFBD>ĵĴ<C4B5><C4B4><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public MProc MProc
|
|||
|
|
{
|
|||
|
|
get { return _MProc; }
|
|||
|
|
set { _MProc = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
private string _ProcName;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>洢<EFBFBD><E6B4A2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>SQL<51><4C><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public string ProcName
|
|||
|
|
{
|
|||
|
|
get { return _ProcName; }
|
|||
|
|
set { _ProcName = value; }
|
|||
|
|
}
|
|||
|
|
private bool _IsProc;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20>Ƿ<EFBFBD><C7B7>洢<EFBFBD><E6B4A2><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public bool IsProc
|
|||
|
|
{
|
|||
|
|
get { return _IsProc; }
|
|||
|
|
set { _IsProc = value; }
|
|||
|
|
}
|
|||
|
|
private DbParameterCollection _DbParameters;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public DbParameterCollection DBParameters
|
|||
|
|
{
|
|||
|
|
get { return _DbParameters; }
|
|||
|
|
set { _DbParameters = value; }
|
|||
|
|
}
|
|||
|
|
private object _ExeResult;
|
|||
|
|
/// <summary>
|
|||
|
|
/// ִ<>кصĽ<D8B5><C4BD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public object ExeResult
|
|||
|
|
{
|
|||
|
|
get { return _ExeResult; }
|
|||
|
|
set { _ExeResult = value; }
|
|||
|
|
}
|
|||
|
|
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD>Զ<EFBFBD><D4B6><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>[ʹ<><CAB9>MActionʱ<6E><CAB1><EFBFBD><EFBFBD>Where<72><65><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>еIJ<D0B5><C4B2><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ʹ<EFBFBD><CAB9>]
|
|||
|
|
/// </summary>
|
|||
|
|
public class AopCustomDbPara
|
|||
|
|
{
|
|||
|
|
private object _ParaName;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public object ParaName
|
|||
|
|
{
|
|||
|
|
get { return _ParaName; }
|
|||
|
|
set { _ParaName = value; }
|
|||
|
|
}
|
|||
|
|
private object _Value;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD>ֵ
|
|||
|
|
/// </summary>
|
|||
|
|
public object Value
|
|||
|
|
{
|
|||
|
|
get { return _Value; }
|
|||
|
|
set { _Value = value; }
|
|||
|
|
}
|
|||
|
|
private DbType _DbType;
|
|||
|
|
/// <summary>
|
|||
|
|
/// <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
|
/// </summary>
|
|||
|
|
public DbType ParaDbType
|
|||
|
|
{
|
|||
|
|
get { return _DbType; }
|
|||
|
|
set { _DbType = value; }
|
|||
|
|
}
|
|||
|
|
//private bool _IsSysPara;
|
|||
|
|
///// <summary>
|
|||
|
|
///// <20>Ƿ<EFBFBD>ϵͳ<CFB5>ڲ<EFBFBD><DAB2><EFBFBD><EFBFBD><EFBFBD><EFBFBD>IJ<EFBFBD><C4B2><EFBFBD>
|
|||
|
|
///// </summary>
|
|||
|
|
//internal bool IsSysPara
|
|||
|
|
//{
|
|||
|
|
// get { return _IsSysPara; }
|
|||
|
|
// set { _IsSysPara = value; }
|
|||
|
|
//}
|
|||
|
|
|
|||
|
|
}
|
|||
|
|
}
|