Ejemplo n.º 1
0
 /// <summary>
 /// 添加关联查询
 /// </summary>
 /// <param name="joinTable">关联表</param>
 /// <returns>ModalAdapter</returns>
 public ModalAdapter <T> Join(JoinTable joinTable)
 {
     if (this._SelectSection == null)
     {
         this.Select(joinTable.QueryColumns);
     }
     joinTable.Join(this._SelectSection);
     this.JoinTables.Add(joinTable);
     return(this);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// 添加关联查询
 /// </summary>
 /// <param name="joinTable">关联表</param>
 /// <returns>ModalAdapter</returns>
 public SearchHelper Join(JoinTable joinTable)
 {
     if (this._SelectSection == null)
     {
         this.Select(joinTable.QueryCulumns);
     }
     joinTable.Join(this._SelectSection);
     this.JoinTables.Add(joinTable);
     return(this);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Fill Modal
 /// </summary>
 /// <param name="ID">主键</param>
 /// <param name="joinTable">关联表</param>
 /// <param name="culumns">需要填充的列</param>
 public void FillModal(object ID, JoinTable joinTable, params ExpressionClip[] culumns)
 {
     this._Modal = joinTable.Join(this._DB.Select(culumns.Length > 0 ? culumns : joinTable.QueryColumns)).Where(this._DB.QueryTable.IDColumn == ID).ToSingleObject <T>();
 }