/// <summary> /// Initializes a new instance of the ProductCollectionViewModel class. /// This constructor is declared protected to avoid undesired instantiation of the ProductCollectionViewModel type without the POCO proxy factory. /// </summary> /// <param name="unitOfWorkFactory">A factory used to create a unit of work instance.</param> protected ProductCollectionViewModel(IUnitOfWorkFactory <IDevAVDbUnitOfWork> unitOfWorkFactory = null, UnitOfWorkPolicy unitOfWorkPolicy = UnitOfWorkPolicy.Individual) : base(unitOfWorkFactory ?? UnitOfWorkSource.GetUnitOfWorkFactory(), x => x.Products, query => QueriesHelper.GetProductInfoWithSales(query), unitOfWorkPolicy: unitOfWorkPolicy) { }