Beispiel #1
0
            public virtual void InitializeContext()
            {
                _context = _fixture.CreateContext();
                _context.ChangeTracker.AutoDetectChangesEnabled = AutoDetectChanges;

                _customers       = _fixture.CreateCustomers(5000, setPrimaryKeys: true);
                _ordersWithoutPk = _fixture.CreateOrders(_customers, ordersPerCustomer: 2, setPrimaryKeys: false);
                _ordersWithPk    = _fixture.CreateOrders(_customers, ordersPerCustomer: 2, setPrimaryKeys: true);
            }
            public virtual void InitializeContext()
            {
                Context = _fixture.CreateContext();
                Context.Configuration.AutoDetectChangesEnabled = AutoDetectChanges;

                Customers       = _fixture.CreateCustomers(5000, setPrimaryKeys: true);
                OrdersWithoutPk = _fixture.CreateOrders(Customers, ordersPerCustomer: 2, setPrimaryKeys: false);
                OrdersWithPk    = _fixture.CreateOrders(Customers, ordersPerCustomer: 2, setPrimaryKeys: true);
            }