You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
public class Vendor
{
public VendorType Type { get; private set; }
}
public enum VendorType
{
KeyAccount = 1,
Support,
BackOffice,
Dealer,
}
Exception details:
System.Linq.Dynamic.Core.Exceptions.ParseException occurred
HResult=0x80131500
Message=Expression of type 'EletraEA.Sales.Domain.Entities.VendorType' expected
Source=System.Linq.Dynamic.Core
StackTrace:
at System.Linq.Dynamic.Core.ExpressionParser.ParseIn()
at System.Linq.Dynamic.Core.ExpressionParser.ParseConditionalAnd()
at System.Linq.Dynamic.Core.ExpressionParser.ParseConditionalOr()
at System.Linq.Dynamic.Core.ExpressionParser.ParseNullCoalescing()
at System.Linq.Dynamic.Core.ExpressionParser.ParseExpression()
at System.Linq.Dynamic.Core.ExpressionParser.ParseParenExpression()
at System.Linq.Dynamic.Core.ExpressionParser.ParsePrimary()
at System.Linq.Dynamic.Core.ExpressionParser.ParseUnary()
at System.Linq.Dynamic.Core.ExpressionParser.ParseMultiplicative()
at System.Linq.Dynamic.Core.ExpressionParser.ParseAdditive()
at System.Linq.Dynamic.Core.ExpressionParser.ParseShift()
at System.Linq.Dynamic.Core.ExpressionParser.ParseComparison()
at System.Linq.Dynamic.Core.ExpressionParser.ParseConditionalAnd()
at System.Linq.Dynamic.Core.ExpressionParser.ParseConditionalOr()
at System.Linq.Dynamic.Core.ExpressionParser.ParseNullCoalescing()
at System.Linq.Dynamic.Core.ExpressionParser.ParseExpression()
at System.Linq.Dynamic.Core.ExpressionParser.Parse(Type resultType, Boolean createParameterCtor)
at System.Linq.Dynamic.Core.DynamicExpressionParser.ParseLambda(Boolean createParameterCtor, ParameterExpression[] parameters, Type resultType, String expression, Object[] values)
at System.Linq.Dynamic.Core.DynamicQueryableExtensions.Where(IQueryable source, String predicate, Object[] args)
at System.Linq.Dynamic.Core.DynamicQueryableExtensions.Where[TSource](IQueryable1 source, String predicate, Object[] args) at Writeless.Data.Extensions.IQueryableContextExtensions.ApplyFilters[T](IQueryable1 query, GenericFilters filters) in E:\projetos\TFS\Git\EletraEA\EletraEA\src\Writeless\Writeless.Data\Extensions\IQueryableContextExtensions.cs:line 70
at Writeless.Data.Extensions.IQueryableContextExtensions.GetPaged[TEntity,TDto](IQueryableContext context, PagingOptions options, GenericFilters filters) in E:\projetos\TFS\Git\EletraEA\EletraEA\src\Writeless\Writeless.Data\Extensions\IQueryableContextExtensions.cs:line 38
at EletraEA.Sales.Data.Repositories.VendorQueryRepository.GetPaged[T](PagingOptions options, GenericFilters filters) in E:\projetos\TFS\Git\EletraEA\EletraEA\src\Sales\EletraEA.Sales.Data\Repositories\VendorQueryRepository.cs:line 40
at EletraEA.Sales.Application.AppServices.VendorAppService.GetPaged(Int32 currentPage, Int32 pageSize, String sortExpression, GenericFilters filters) in E:\projetos\TFS\Git\EletraEA\EletraEA\src\Sales\EletraEA.Sales.Application\AppServices\VendorAppService.cs:line 25
at EletraEA.UI.Api.EletraEA.Controllers.Sales.VendorsController.Get(Int32 currentPage, Int32 pageSize, String sortExpression, String[] p, ComparisonOperator[] c, LogicalOperator[] l, String[] v) in E:\projetos\TFS\Git\EletraEA\EletraEA\src\UI\Api\EletraEA.UI.Api.EletraEA\Controllers\Sales\VendorsController.cs:line 37
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__27.MoveNext()
The text was updated successfully, but these errors were encountered:
Nice work in this lib, thank you, but I have a problem with syntax IN and Enums.
Expression work: (type == ("KeyAccount"))
Expression dont work: (type IN ("KeyAccount", "Support"))
Versions:
"System.Linq.Dynamic.Core": "1.0.6.10"
"Microsoft.EntityFrameworkCore.SqlServer": "1.1.1"
Code detail:
Exception details:
System.Linq.Dynamic.Core.Exceptions.ParseException occurred
HResult=0x80131500
Message=Expression of type 'EletraEA.Sales.Domain.Entities.VendorType' expected
Source=System.Linq.Dynamic.Core
StackTrace:
at System.Linq.Dynamic.Core.ExpressionParser.ParseIn()
at System.Linq.Dynamic.Core.ExpressionParser.ParseConditionalAnd()
at System.Linq.Dynamic.Core.ExpressionParser.ParseConditionalOr()
at System.Linq.Dynamic.Core.ExpressionParser.ParseNullCoalescing()
at System.Linq.Dynamic.Core.ExpressionParser.ParseExpression()
at System.Linq.Dynamic.Core.ExpressionParser.ParseParenExpression()
at System.Linq.Dynamic.Core.ExpressionParser.ParsePrimary()
at System.Linq.Dynamic.Core.ExpressionParser.ParseUnary()
at System.Linq.Dynamic.Core.ExpressionParser.ParseMultiplicative()
at System.Linq.Dynamic.Core.ExpressionParser.ParseAdditive()
at System.Linq.Dynamic.Core.ExpressionParser.ParseShift()
at System.Linq.Dynamic.Core.ExpressionParser.ParseComparison()
at System.Linq.Dynamic.Core.ExpressionParser.ParseConditionalAnd()
at System.Linq.Dynamic.Core.ExpressionParser.ParseConditionalOr()
at System.Linq.Dynamic.Core.ExpressionParser.ParseNullCoalescing()
at System.Linq.Dynamic.Core.ExpressionParser.ParseExpression()
at System.Linq.Dynamic.Core.ExpressionParser.Parse(Type resultType, Boolean createParameterCtor)
at System.Linq.Dynamic.Core.DynamicExpressionParser.ParseLambda(Boolean createParameterCtor, ParameterExpression[] parameters, Type resultType, String expression, Object[] values)
at System.Linq.Dynamic.Core.DynamicQueryableExtensions.Where(IQueryable source, String predicate, Object[] args)
at System.Linq.Dynamic.Core.DynamicQueryableExtensions.Where[TSource](IQueryable
1 source, String predicate, Object[] args) at Writeless.Data.Extensions.IQueryableContextExtensions.ApplyFilters[T](IQueryable
1 query, GenericFilters filters) in E:\projetos\TFS\Git\EletraEA\EletraEA\src\Writeless\Writeless.Data\Extensions\IQueryableContextExtensions.cs:line 70at Writeless.Data.Extensions.IQueryableContextExtensions.GetPaged[TEntity,TDto](IQueryableContext context, PagingOptions options, GenericFilters filters) in E:\projetos\TFS\Git\EletraEA\EletraEA\src\Writeless\Writeless.Data\Extensions\IQueryableContextExtensions.cs:line 38
at EletraEA.Sales.Data.Repositories.VendorQueryRepository.GetPaged[T](PagingOptions options, GenericFilters filters) in E:\projetos\TFS\Git\EletraEA\EletraEA\src\Sales\EletraEA.Sales.Data\Repositories\VendorQueryRepository.cs:line 40
at EletraEA.Sales.Application.AppServices.VendorAppService.GetPaged(Int32 currentPage, Int32 pageSize, String sortExpression, GenericFilters filters) in E:\projetos\TFS\Git\EletraEA\EletraEA\src\Sales\EletraEA.Sales.Application\AppServices\VendorAppService.cs:line 25
at EletraEA.UI.Api.EletraEA.Controllers.Sales.VendorsController.Get(Int32 currentPage, Int32 pageSize, String sortExpression, String[] p, ComparisonOperator[] c, LogicalOperator[] l, String[] v) in E:\projetos\TFS\Git\EletraEA\EletraEA\src\UI\Api\EletraEA.UI.Api.EletraEA\Controllers\Sales\VendorsController.cs:line 37
at Microsoft.AspNetCore.Mvc.Internal.ControllerActionInvoker.d__27.MoveNext()
The text was updated successfully, but these errors were encountered: