Closed paulvanbladel closed 1 year ago
I have following use case. An Order type which has a computed property "OrderStatus" of type IOrderStatus:
[Computed] [NotMapped] public IOrderStatus OrderStatus { get { return (_orderStatus == "Draft") ? (IOrderStatus)(new Draft()) : (IOrderStatus)(new Ordered()); } }
Now I want to query as follows:
var result = _context.Orders .Where(c => c.OrderStatus is Draft) .Decompile() .ToList();
When NOT using .Decompile I get the correct results but the query is done locally (that's why I'm using DelegateDecompiler :) )
but with .Decompile() I get as error: : 'Argument types do not match'
Any idea?
Could you please provide a more complete code example for tests and potential fix ?
Thanks, Max.
Duplicate of #107
This has been released in 0.32.0. Please consider ❤️ supporting the project.
0.32.0
I have following use case. An Order type which has a computed property "OrderStatus" of type IOrderStatus:
Now I want to query as follows:
When NOT using .Decompile I get the correct results but the query is done locally (that's why I'm using DelegateDecompiler :) )
but with .Decompile() I get as error: : 'Argument types do not match'
Any idea?