using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Collections; using Ant.Data; namespace Ant.ORM { public class SqlEntity { public SqlEntity() { Parameters = new QueryParameterCollection(); } private static object lockHelper = new object(); private static volatile MakeJoinTable instance = null; public string StrSelect { get; set; } public int StrTop { get; set; } /// /// 页数 /// public int PageNo { get; set; } /// /// 页面 /// public int PageSize { get; set; } /// /// 不带参数的Where查询条件 /// public string StrWhere { get; set; } /// /// 带参数的Where查询条件 /// public string StrParmWhere { get; set; } /// /// 查询主表 /// public string StrFrom { get; set; } /// /// 查询主表别名 /// public string StrAsName { get; set; } /// /// 查询SQL排序 /// public string StrOrderBy { get; set; } /// /// 查询关联表 /// public string StrJoin { get; set; } /// /// 关联表条件 /// public string StrOn { get; set; } /// /// 命令参数集合 /// public QueryParameterCollection Parameters { get; set; } /// /// 多表关联显示的表字段 /// public MakeShowFields FieldColumns { get; set; } /// /// 关联表 /// public MakeJoinTable JoinTable { get { if (instance == null) { lock (lockHelper) { if (instance == null) { instance = new MakeJoinTable(); } } } return instance; } set { instance = value; } } /// /// 查询条件 /// public MakeQueryWhere QueryWhere { get; set; } /// /// 排序 /// public MakeOrderBy OrderBy { get; set; } } }