mirror of
https://github.com/nsnail/FreeSql.git
synced 2025-06-19 20:38:16 +08:00
## v0.3.23
- 修复 因功能增加,导致联表查询出现的表达式函数解析 bug; - 修复 因功能增加,导致查询数据时,ExpressionTree bug;
This commit is contained in:
@ -23,9 +23,12 @@ namespace FreeSql.Internal.Model {
|
||||
internal void AddOrUpdateTableRef(string propertyName, TableRef tbref) {
|
||||
_refs.AddOrUpdate(propertyName, tbref, (ok, ov) => tbref);
|
||||
}
|
||||
internal TableRef GetTableRef(string propertyName) {
|
||||
internal TableRef GetTableRef(string propertyName, bool isThrowException) {
|
||||
if (_refs.TryGetValue(propertyName, out var tryref) == false) return null;
|
||||
if (tryref.Exception != null) throw tryref.Exception;
|
||||
if (tryref.Exception != null) {
|
||||
if (isThrowException) throw tryref.Exception;
|
||||
return null;
|
||||
}
|
||||
return tryref;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user