Update Includes

This commit is contained in:
sunkaixuan
2022-04-11 01:24:00 +08:00
parent 735f3fcccd
commit 492f9784e8
3 changed files with 25 additions and 1 deletions

View File

@@ -267,7 +267,11 @@ namespace SqlSugar
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);
}
}
}

View File

@@ -33,6 +33,7 @@ namespace SqlSugar
#endregion
#region Splicing basic
public List<Expression[]> Includes { get; set; }
public List<string> IgnoreColumns { get; set; }
public bool IsCount { get; set; }
public bool IsSqlQuery { get; set; }

View File

@@ -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;
}
}
}