关于多个表关联后使用Clone()方法会报错 返回
SqlSugar
老数据
1
1163
悬赏:5 飞吻
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; }
}
这个两个版本都有这个问题,下面是demo
热忱回答(1)
-
fate sta VIP0
2023/2/8已发布 过几分钟可以安装
0 回复