dtretyakov / WindowsAzure

.NET library aimed at managing and querying entities from Windows Azure Storage. It can be used as LINQ to Azure Tables.
MIT License
64 stars 27 forks source link

Unable to evaluate an expression: 'e.PropertyTypeEnum'. #72

Open gblmarquez opened 3 years ago

gblmarquez commented 3 years ago

I found a bug when using a Where Expression when any of the properties is an enum.

I'm going to work to fix it.

_at WindowsAzure.Table.Queryable.Expressions.Infrastructure.ExpressionTranslator.AppendConstant(Expression node) at WindowsAzure.Table.Queryable.Expressions.Infrastructure.ExpressionTranslator.AppendBinaryPart(Expression node, ExpressionType type) at WindowsAzure.Table.Queryable.Expressions.Infrastructure.ExpressionTranslator.VisitBinary(BinaryExpression binary) at System.Linq.Expressions.BinaryExpression.Accept(ExpressionVisitor visitor) at System.Linq.Expressions.ExpressionVisitor.Visit(Expression node) at WindowsAzure.Table.Queryable.Expressions.Infrastructure.ExpressionTranslator.Translate(ITranslationResult result, MethodCallExpression method) at WindowsAzure.Table.Queryable.Expressions.Methods.WhereTranslator.Translate(MethodCallExpression method, ITranslationResult result) at WindowsAzure.Table.Queryable.Expressions.QueryTranslator.VisitMethodCall(MethodCallExpression methodCall, ITranslationResult result) at WindowsAzure.Table.Queryable.Expressions.QueryTranslator.Translate(Expression expression, ITranslationResult result) at WindowsAzure.Table.Queryable.TableQueryProvider1.Execute(Expression expression) at WindowsAzure.Table.Queryable.Base.Query1.GetEnumerator() at System.Linq.AsyncEnumerable.AsyncEnumerableAdapter1.<MoveNextCore>d__5.MoveNext() at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable1.ConfiguredValueTaskAwaiter.GetResult() at System.Linq.AsyncIteratorBase1.<MoveNextAsync>d__8.MoveNext() in at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Linq.AsyncIteratorBase1.d8.MoveNext() in at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable`1.ConfiguredValueTaskAwaiter.GetResult() at System.Linq.AsyncEnumerable.<gCore|291_0>d1.MoveNext() in at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Linq.AsyncEnumerable.<<TryGetFirst>g__Core|291_0>d1.MoveNext() in at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd(Task task) at System.Threading.Tasks.ValueTask1.get_Result() at System.Runtime.CompilerServices.ConfiguredValueTaskAwaitable1.ConfiguredValueTaskAwaiter.GetResult() at System.Linq.AsyncEnumerable.<gCore|287_0>d1.MoveNext() in at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw() at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at System.Threading.Tasks.ValueTask1.get_Result() at System.Runtime.CompilerServices.ValueTaskAwaiter`1.GetResult() at FisTech.Tests.Persistence.WindowsAzure.TableReadOnlyRepositoryTests.d12.MoveNext() in_