1
ef core 3.1 版本,生成的sql语句错误,字符串连接符没有转换,比如c#代码中这样写: var products = await dbContext.Products.Where(o => o.IsEnabled == true) .Select(o => new { Name = o.Code + o.Name }); 生成的sql语句对加号没有转换,生成的sql语句为: select t.code + t.name as name … from …; 应该为 t.code || t.name
报错信息:字符串转换出错
已安排人验证,有进展会第一时间回复
已解决,补丁发您了,请查收!
ef core 3.1 版本,生成的sql语句错误,字符串连接符没有转换,比如c#代码中这样写:
var products = await dbContext.Products.Where(o => o.IsEnabled == true)
.Select(o => new {
Name = o.Code + o.Name
});
生成的sql语句对加号没有转换,生成的sql语句为:
select t.code + t.name as name … from …;
应该为 t.code || t.name
报错信息:字符串转换出错