Npgsql.EntityFrameworkCore.PostgreSQL: 8.0.0
Npgsql: 8.0.1
System.IndexOutOfRangeException
Index was outside the bounds of the array.
at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.ValueConversion.NpgsqlArrayConverter`3.ArrayConversionExpression[TInput,TOutput,TConcreteOutput](LambdaExpression elementConversionExpression)
at Npgsql.EntityFrameworkCore.PostgreSQL.Storage.ValueConversion.NpgsqlArrayConverter`3..ctor(ValueConverter elementConverter)
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeDirectByRefWithFewArgs(Object obj, Span`1 copyOfArgs, BindingFlags invokeAttr)
The problem is in the line
|
var iListType = typeof(IList<>).MakeGenericType(typeof(TInput).GetGenericArguments()[0]); |
I think, inputElementType variable must be used here instead of typeof(TInput).GetGenericArguments()[0]