mirror of
https://gitee.com/dotnetchina/SqlSugar.git
synced 2025-08-23 13:06:50 +08:00
Navigate query bug
This commit is contained in:
parent
bc06140aef
commit
9f273bcc50
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user