-
Notifications
You must be signed in to change notification settings - Fork 893
Description
问题描述及重现代码:
// c# code
// ImportLogIds的类型为 long[]
try
{
freeSql.Select<Core.Domain.CorePayOrder.CorePayOrderEntity>()
.Where(a => a.ImportLogIds.Contains(0))
.DisableGlobalFilter(FreeSql.FreeSqlExtensions.BranchFilters)
.Where(a => !a.BranchId.HasValue)
.Any();
}
catch (System.Exception ex)
{
logger?.LogError(ex, "FreeSql Array解析错误");
}报以下异常:
System.Exception: FreeSql: Function expression op_Implicit(a.ImportLogIds) parsing not implemented
at FreeSql.Internal.CommonExpression.ExpressionLambdaToSql(Expression exp, ExpTSC tsc)
at FreeSql.PostgreSQL.PostgreSQLExpression.<>c__DisplayClass1_0.b__0(Expression exparg)
at FreeSql.PostgreSQL.PostgreSQLExpression.ExpressionLambdaToSqlOther(Expression exp, ExpTSC tsc)
at FreeSql.Internal.CommonExpression.ExpressionLambdaToSql(Expression exp, ExpTSC tsc)
at FreeSql.Internal.CommonExpression.ExpressionWhereLambda(List1 _tables, Func3 _tableRule, Expression exp, BaseDiyMemberExpression diymemexp, List1 whereGlobalFilter, List1 dbParams)
at FreeSql.Internal.CommonProvider.Select0Provider2.InternalWhere(Expression exp) at FreeSql.Internal.CommonProvider.Select1Provider1.WhereIf(Boolean condition, Expression1 exp) at FreeSql.Internal.CommonProvider.Select1Provider1.Where(Expression`1 exp)
数据库版本
postgresql 15
安装的Nuget包
.net framework/. net core? 及具体版本
.net 8.0