Код: Выделить всё
var objectExternalIds = new string[] { "abc" };
var query = from order in Context.Order
join apointment in Context.Appointment on order.Nr equals apointment.OrderNr
where objectExternalIds.Contains(order.objectId)
select apointment.Id;
var result = await query.ToListAsync(cancellationToken);
Код: Выделить всё
An exception was thrown while attempting to evaluate the LINQ query parameter expression 'op_Implicit(Convert(value(Application.Shared.DataWrappers.Order.OrderDataWrapper+c__DisplayClass23_0).objectExternalIds, String[]))'. See the inner exception for more information.
GenericArguments[1], 'System.ReadOnlySpan`1[System.String]', on 'System.Linq.Expressions.Interpreter.FuncCallInstruction`2[T0,TRet]' violates the constraint of type 'TRet'.
GenericArguments[1], 'System.ReadOnlySpan`1[System.String]', on 'System.Linq.Expressions.Interpreter.FuncCallInstruction`2[T0,TRet]' violates the constraint of type parameter 'TRet'.
Я не понимаю, что эта ошибка должна быть довольно простой
Подробнее здесь: https://stackoverflow.com/questions/797 ... rameter-ex
Мобильная версия