Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
2881099 committed May 24, 2022
1 parent a1f029a commit 3b96168
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
</PropertyGroup>

<PropertyGroup>
<Version>3.2.650</Version>
<Version>3.2.651</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
9 changes: 9 additions & 0 deletions FreeSql.DbContext/FreeSql.DbContext.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion FreeSql/Internal/CommonExpression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,7 @@ rightExp is UnaryExpression rightExpUexp &&
if (enumType.IsEnum)
{
rightMapColumn = SearchColumnByField(tsc._tables, tsc.currentTable, right);
if (rightMapColumn != null)
if (rightMapColumn == null)
right = formatSql(Enum.Parse(enumType, right.StartsWith("N'") ? right.Substring(1).Trim('\'') : right.Trim('\'')), leftMapColumn.Attribute.MapType, leftMapColumn, tsc.dbParams);
}
}
Expand Down

0 comments on commit 3b96168

Please sign in to comment.