Skip to content

Commit 3b96168

Browse files
committed
1 parent a1f029a commit 3b96168

File tree

3 files changed

+11
-2
lines changed

3 files changed

+11
-2
lines changed

Directory.Build.props

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</PropertyGroup>
1010

1111
<PropertyGroup>
12-
<Version>3.2.650</Version>
12+
<Version>3.2.651</Version>
1313
</PropertyGroup>
1414

1515
<ItemGroup>

FreeSql.DbContext/FreeSql.DbContext.xml

+9
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

FreeSql/Internal/CommonExpression.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ rightExp is UnaryExpression rightExpUexp &&
650650
if (enumType.IsEnum)
651651
{
652652
rightMapColumn = SearchColumnByField(tsc._tables, tsc.currentTable, right);
653-
if (rightMapColumn != null)
653+
if (rightMapColumn == null)
654654
right = formatSql(Enum.Parse(enumType, right.StartsWith("N'") ? right.Substring(1).Trim('\'') : right.Trim('\'')), leftMapColumn.Attribute.MapType, leftMapColumn, tsc.dbParams);
655655
}
656656
}

0 commit comments

Comments
 (0)