Entity Framework virtual ICollections

asp.net-core entity-framework-core

Accepted Answer

One problem is that you don't have the member name you're trying to initialize. Afterward, you must initialize it with a collection type rather than a single type.UInfo instance:

...
Name = ug.Name,
UInfo = new List<UInfo> 
{
    new UInfo
    {
        ...
    }
}
0
9/25/2018 2:29:05 PM

Popular Answer

ZZZ_tmp


Related Questions





Related

Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow
Licensed under: CC-BY-SA with attribution
Not affiliated with Stack Overflow