123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166 |
- using System;
- using System.Collections.Generic;
- using System.Data;
- using System.Linq;
- using System.Text;
- using Ant.Data;
- using Ant.Frame;
- using System.Collections;
- namespace Ant.ORM
- {
-
-
-
- [Serializable]
- public abstract class QueryBase<T>
- {
- private int _TimeStamp = 0;
- private string _WhereSql = string.Empty;
-
-
-
-
-
- public DataAccess SQLDB { get; set; }
-
-
-
- protected Hashtable Rules = new Hashtable();
- protected QueryBase()
- {
- }
-
-
-
-
-
- public abstract void GetDetail(int level);
-
-
-
-
-
-
- public abstract ResponseModel GetEntity(RequestModel enty);
-
-
-
-
-
-
- public abstract ResponseModel GetDr2EnList(RequestModel enty);
-
-
-
-
-
- public abstract ResponseModel GetDt2EnList(RequestModel enty);
-
-
-
-
-
-
- public abstract ResponseModel GetDtList(RequestModel enty);
-
-
-
-
-
- public abstract ResponseModel GetDr2DtList(RequestModel enty);
-
-
-
-
-
-
- public abstract ResponseModel GetPageRecordList(RequestModel enty);
-
-
-
-
-
-
- public abstract ResponseModel GetPageRecordDt(RequestModel enty);
-
-
-
- internal long TimeStamp
- {
- get { return this._TimeStamp; }
- }
-
-
-
- public abstract string ModuleName { get; }
-
-
-
- public abstract string OrderBy { get; set; }
-
-
-
-
- public virtual void SetValueByJson(string JsonString)
- {
- }
- private EntityPersistType persistType;
-
-
-
- public EntityPersistType PersistType
- {
- get { return persistType; }
- set { persistType = value; }
- }
- public bool _isbug=false;
-
-
-
- public bool IsBug
- {
- get { return _isbug; }
- set { _isbug = value; }
- }
-
-
-
-
- public string WhereSql
- {
- get
- {
- return this._WhereSql;
- }
- set
- {
- value = value.Trim().ToLower();
- if (value.StartsWith("where"))
- {
- value = value.Substring(5, value.Length - 5);
- }
- this._WhereSql = value;
- }
- }
- }
- }
|