From 3b961681dcdf29873b70c4cc7303cb3dde08461c Mon Sep 17 00:00:00 2001 From: 2881099 <2881099@qq.com> Date: Tue, 24 May 2022 18:03:12 +0800 Subject: [PATCH] v3.2.651 #1118 #1116 #1115 #1113 #1112 #1108 #1104 #1028 #846 #243 --- Directory.Build.props | 2 +- FreeSql.DbContext/FreeSql.DbContext.xml | 9 +++++++++ FreeSql/Internal/CommonExpression.cs | 2 +- 3 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Directory.Build.props b/Directory.Build.props index 5aedaafd4..03a940e92 100644 --- a/Directory.Build.props +++ b/Directory.Build.props @@ -9,7 +9,7 @@ - 3.2.650 + 3.2.651 diff --git a/FreeSql.DbContext/FreeSql.DbContext.xml b/FreeSql.DbContext/FreeSql.DbContext.xml index d34b34efe..1ab5bf1cf 100644 --- a/FreeSql.DbContext/FreeSql.DbContext.xml +++ b/FreeSql.DbContext/FreeSql.DbContext.xml @@ -728,6 +728,15 @@ + + + 根据Assembly扫描所有继承IEntityTypeConfiguration<T>的配置类 + + + + + + 创建普通数据上下文档对象 diff --git a/FreeSql/Internal/CommonExpression.cs b/FreeSql/Internal/CommonExpression.cs index 7dbb3c280..c9b60954a 100644 --- a/FreeSql/Internal/CommonExpression.cs +++ b/FreeSql/Internal/CommonExpression.cs @@ -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); } }