Пример #1
0
        public MainWindow()
        {
            InitializeComponent();

            _context = new AdventureWorksEntities();
            var departments = _context.Department.Where(x => x.DepartmentID > 0).ToList();

            this.DataContext = departments;
        }
        public MainWindow()
        {
            InitializeComponent();

            _context = new AdventureWorksEntities();
            var departments = _context.Department.Where(x => x.DepartmentID > 0).ToList();

            this.DataContext = departments;
        }