Beispiel #1
0
        protected override void OnInitializeInRuntime()
        {
            base.OnInitializeInRuntime();
            var unitOfWork = UnitOfWorkFactory.CreateUnitOfWork();

            Sales         = QueriesHelper.GetSales(unitOfWork.OrderItems);
            SelectedSale  = Sales[0];
            AverageOrders = QueriesHelper.GetAverageOrders(unitOfWork.Orders.ActualOrders(), NumberOfAverageOrders);
        }