Exemple #1
0
        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();
        }
        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;
 }
Exemple #4
0
 /// <summary>
 /// Конструктор.
 /// </summary>
 /// <param name="context">Контекст БД.</param>
 public HistoryExtractor(AssemblyHistoryContext context)
 {
     _context = context;
 }