mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-09-22 20:13:41 +08:00
Update .net core project
This commit is contained in:
@@ -18,7 +18,7 @@ namespace SqlSugar
|
|||||||
|
|
||||||
public void InitTables(Type type)
|
public void InitTables(Type type)
|
||||||
{
|
{
|
||||||
var isSplitEntity = type.GetCustomAttributes<SplitTableAttribute>() != null;
|
var isSplitEntity = type.GetCustomAttribute<SplitTableAttribute>() != null;
|
||||||
if (isSplitEntity)
|
if (isSplitEntity)
|
||||||
{
|
{
|
||||||
_InitTables(type);
|
_InitTables(type);
|
||||||
|
@@ -354,7 +354,7 @@ namespace SqlSugar
|
|||||||
{
|
{
|
||||||
//var setValue = navList
|
//var setValue = navList
|
||||||
// .Where(x => navColumn.PropertyInfo.GetValue(x).ObjToString() == listItemPkColumn.PropertyInfo.GetValue(item).ObjToString()).ToList();
|
// .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
|
join n in navList
|
||||||
on listItemPkColumn.PropertyInfo.GetValue(l).ObjToString()
|
on listItemPkColumn.PropertyInfo.GetValue(l).ObjToString()
|
||||||
equals navColumn.PropertyInfo.GetValue(n).ObjToString()
|
equals navColumn.PropertyInfo.GetValue(n).ObjToString()
|
||||||
|
Reference in New Issue
Block a user