Closed fabercs closed 5 years ago
Thanks for contacting us, @fabercs. @dougbu, can you please look into this? Thanks!
@mkArtakMSFT , @dougbu I have checked my code with a refreshed eye and Invoke
parameter name and anonymous type parameter name in caller were mismatching. No worries.
Description of the problem:
I want to make a generic list component in my application. List components are called as follows;
@await Component.InvokeAsync("ListComponent", new { list = Model.List, columnsList= "Subject,Description" })
The list in
Model.List
contains aList<T>
whereT
is a type derived from a baseIEntity
. Here the componentsInvoke
this works fine, however when change to this list starts coming
null
.Is there a way to make this work with generic types?
Version of
Microsoft.AspNetCore.Mvc
orMicrosoft.AspNetCore.App
orMicrosoft.AspNetCore.All
: Asp.Net Core 2.1