mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-10-15 18:55:07 +08:00
Navigate query bug
This commit is contained in:
@@ -138,11 +138,15 @@ namespace SqlSugar
|
||||
var memberExpression = ((expression as LambdaExpression).Body as MemberExpression);
|
||||
|
||||
var listItemType = list.Where(it=>it!=null).FirstOrDefault()?.GetType();
|
||||
if (listItemType == null)
|
||||
{
|
||||
return;
|
||||
}
|
||||
if (listItemType.Name.StartsWith("List`"))
|
||||
{
|
||||
listItemType = listItemType.GetGenericArguments()[0];
|
||||
}
|
||||
if (listItemType == null) return;
|
||||
//if (listItemType == null) return;
|
||||
|
||||
var listItemEntity = this.Context.EntityMaintenance.GetEntityInfo(listItemType);
|
||||
var listPkColumn = listItemEntity.Columns.Where(it => it.IsPrimarykey).FirstOrDefault();
|
||||
|
Reference in New Issue
Block a user