Пример #1
0
 public UnitOfWork(FormDataBase context)
 {
     _dbContext             = context;
     GettingValueRepository = new GettingValueRepository(_dbContext);
     FormCreatingRepository = new FormCreatingRepository(_dbContext);
 }
Пример #2
0
        private void SearchBtn_Click(object sender, EventArgs e)
        {
            Form formDataBase = new FormDataBase();

            formDataBase.ShowDialog();
        }
 public GettingValueRepository(FormDataBase dataBase) : base(dataBase)
 {
 }
 public FormCreatingRepository(FormDataBase dataBase) : base(dataBase)
 {
 }
Пример #5
0
 public Repository(FormDataBase context)
 {
     this.context = context;
     this.dbSet   = context.Set <TEntity>();
 }