mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2026-02-27 16:50:33 +08:00
Update Includes
This commit is contained in:
@@ -267,7 +267,11 @@ namespace SqlSugar
|
|||||||
|
|
||||||
private void _Includes( SqlSugarProvider context, params Expression [] includes)
|
private void _Includes( SqlSugarProvider context, params Expression [] includes)
|
||||||
{
|
{
|
||||||
throw new NotImplementedException();
|
if (this.QueryBuilder.Includes == null)
|
||||||
|
{
|
||||||
|
this.QueryBuilder.Includes =new List<Expression[]>();
|
||||||
|
}
|
||||||
|
this.QueryBuilder.Includes.Add(includes);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -33,6 +33,7 @@ namespace SqlSugar
|
|||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Splicing basic
|
#region Splicing basic
|
||||||
|
public List<Expression[]> Includes { get; set; }
|
||||||
public List<string> IgnoreColumns { get; set; }
|
public List<string> IgnoreColumns { get; set; }
|
||||||
public bool IsCount { get; set; }
|
public bool IsCount { get; set; }
|
||||||
public bool IsSqlQuery { get; set; }
|
public bool IsSqlQuery { get; set; }
|
||||||
|
|||||||
@@ -203,4 +203,23 @@ namespace SqlSugar
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[AttributeUsage(AttributeTargets.Property, Inherited = true)]
|
||||||
|
public class Navigat: Attribute
|
||||||
|
{
|
||||||
|
public string name { get; set; }
|
||||||
|
public Type mappingType { get; set; }
|
||||||
|
public string aId { get; set; }
|
||||||
|
public string bId { get; set; }
|
||||||
|
public Navigat(string name)
|
||||||
|
{
|
||||||
|
this.name = name;
|
||||||
|
}
|
||||||
|
public Navigat(Type abType,string aId,string bId)
|
||||||
|
{
|
||||||
|
this.mappingType = mappingType;
|
||||||
|
this.aId = aId;
|
||||||
|
this.bId= bId;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user