Krish wrote:
I am not trying to solve any problem but trying to understand how you have implemented the factory design pattern. For example, one definition of factory design pattern is :
Defines an interface for creating an object, but lets subclasses decide which class to instantiate. Factory method lets a class defer instantiation to subclasses.
I am trying to study and understand above definition with your implementaion of GetEntityFactory.
The factories are just used to produce entity instances. For example if you fetch a collection of entities, the factories are used to produce new instances to store the data in.
There are a couple of different factory implementations, we use the simple one, as life's already complicated enough
. I.o.w.: not abstract factory pattern, just factory pattern.