public MainForm() { InitializeComponent(); // Поддержка EF-детейлов для GridControl. assembliesGridView.DataController.AllowIEnumerableDetails = true; // Связывание. _dbContext = new AssemblyHistoryContext(); _dbContext.Assemblies.Include(a => a.Members.Select(b => b.Annotations)).Load(); assembliesBindingSource.DataSource = _dbContext.Assemblies.Local.ToBindingList(); }
/// <summary> /// Конструктор. /// </summary> /// <param name="context">Контекст БД.</param> public HistoryExtractor(AssemblyHistoryContext context) { _context = context; }