How can I eager fetch content of custom types in a ContentManager query?
问题 I'm running into some n+1 performance issues when iterating over a collection of ContentItems of a custom Type that I created solely through migrations. ContentDefinitionManager.AlterPartDefinition("MyType", part => part .WithField("MyField", field => field ... ) ); ContentDefinitionManager.AlterTypeDefinition("MyType", type => type .WithPart("MyType") ); Every time I access a field of this part a new query is performed. I can use QueryHints to avoid this for the predefined parts var myItems