Posted on 21/08/2020 11:27:40
I'd guess we can come up with a lot of other standard things that could be needed on the ProductViewModel for example all the other data on stored fields from the Index, database table coloumns etc.
Maybe it would be worth looking into giving the ProductViewModel a Properties property of type IEnumerable<Dictionary<string, object>>.
Then give us a NotificationSubscriber hook into a FillProductViewModel() method where we could a reference to the data source - is this case a link to lucene document and the database row representing the source..
We could then add the collection of extra needed information into the Properties collection from what we need from our sources.