Browse Source

Update .net core project

pull/19/head
sunkaixuan 2 years ago
parent
commit
9519d2a57b
  1. 2
      Src/Asp.Net/SqlSugar/Abstract/CodeFirstProvider/SplitCodeFirstProvider.cs
  2. 2
      Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/NavigatManager.cs

2
Src/Asp.Net/SqlSugar/Abstract/CodeFirstProvider/SplitCodeFirstProvider.cs

@ -18,7 +18,7 @@ namespace SqlSugar
public void InitTables(Type type)
{
var isSplitEntity = type.GetCustomAttributes<SplitTableAttribute>() != null;
var isSplitEntity = type.GetCustomAttribute<SplitTableAttribute>() != null;
if (isSplitEntity)
{
_InitTables(type);

2
Src/Asp.NetCore2/SqlSugar/Abstract/QueryableProvider/NavigatManager.cs

@ -354,7 +354,7 @@ namespace SqlSugar
{
//var setValue = navList
// .Where(x => navColumn.PropertyInfo.GetValue(x).ObjToString() == listItemPkColumn.PropertyInfo.GetValue(item).ObjToString()).ToList();
var groupQuery = (from l in list
var groupQuery = (from l in list.Distinct()
join n in navList
on listItemPkColumn.PropertyInfo.GetValue(l).ObjToString()
equals navColumn.PropertyInfo.GetValue(n).ObjToString()

Loading…
Cancel
Save