Materializing an ICollection structure containing subclasses

后端 未结 2 360
渐次进展
渐次进展 2021-01-28 23:37

I\'m reviewing some code that was written in the EF 4 days because it stands out during performance benchmarking.

The purpose of the code is to materialize an ICol

2条回答
  •  小鲜肉
    小鲜肉 (楼主)
    2021-01-29 00:30

    For those on EF Core 2.1 or later, this feature is now supported out-of-the-box.

    Request from 2010:

    When in an data model for entity framework has a navigation property it is not posseble to eager load that navigation property besides when using OfType<> or when eager loading the derived type itself by a navigation property.

    Response from 2018:

    The feature is part of EF Core 2.1, which is currently in preview. Please create issues in our issue tracker if you find any problems.

提交回复
热议问题