关于多个表关联后使用Clone()方法会报错 返回

SqlSugar 老数据
1 1163
using SqlSugar;

SqlSugarClient client = new SqlSugarClient(new ConnectionConfig()
{
    DbType = DbType.SqlServer,
    ConfigId = "1",
    IsAutoCloseConnection = true,
    InitKeyType = InitKeyType.Attribute
});
var queryable = client.Queryable<Student>().InnerJoin<School>((student, school) => student.Id == school.Id);
var clone = queryable.Clone();//直接调用Clone就会出现错误(最新的两个版本都有这个问题)


public class Student
{
    [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
    public int Id { get; set; }

    public string Name { get; set; }
}

public class School
{
    [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
    public int Id { get; set; }

    public string Name { get; set; }
}

image.png

这个两个版本都有这个问题,下面是demo

ConsoleApp1.zip


热忱回答(1)