I have a custom entity called mySiteEntity which inherits the generated SiteEntity.
I have had no issues extending this to use different entity factories for dependent collections for example:
Public Class MySiteEntity
Public Sub New(ByVal siteID As System.Int32)
MyBase.New(siteID)
MyBase.SiteFeeds.EntityFactoryToUse = New MySiteFeedEntityFactory
MyBase.CustomCategory.EntityFactoryToUse = New MyCustomCategoryEntityFactory
End Sub
...some other constructors etc
End Class
But how do I extend MySiteEntity to use my a different entity factory for single enitities not collections.
So I have a mySiteHostEntity which inherits the SiteHostEntity and I want mySiteEntity's SiteHost member to use mySiteHostEntity.
I'm looking for the equivalent EntityFactoryToUse setting used for collections as in:
MyBase.SiteFeeds.EntityFactoryToUse = New MySiteFeedEntityFactory
but for entities:
MyBase.SiteHost.EntityFactoryToUse = mySiteHost <- and this I cannot do?