Browse Source

Update EntityColumnExtension

pull/30/head
sunkaixuan 2 years ago
parent
commit
4715901bf2
  1. 4
      Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityColumnExtension.cs

4
Src/Asp.Net/SqlSugar/Abstract/EntityMaintenance/EntityColumnExtension.cs

@ -54,12 +54,12 @@ namespace SqlSugar
return this;
}
public EntityColumnable<T> ManyToMany(Expression<Func<T, object>> propertyExpression,NavigateType type, string firstName, string lastName)
public EntityColumnable<T> ManyToMany(Expression<Func<T, object>> propertyExpression,Type mapppingType, string mapppingTypeAid, string mapppingTypeBid)
{
var name = ExpressionTool.GetMemberName(propertyExpression);
if (entityColumnInfo.PropertyName == name && IsTable)
{
entityColumnInfo.Navigat = new Navigate(type, firstName, lastName);
entityColumnInfo.Navigat = new Navigate(mapppingType, mapppingTypeAid, mapppingTypeBid);
entityColumnInfo.IsIgnore = true;
}
return this;

Loading…
Cancel
Save