Exemple #1
0
 public AddBookForm()
 {
     InitializeComponent();
     _context = new MyLibraryDbContext();
     fillcomboboxgenre();
     fillcomboboxauthor();
 }
 public dashboardForm()
 {
     _context = new MyLibraryDbContext();
     InitializeComponent();
 }
Exemple #3
0
 public AddGenre()
 {
     InitializeComponent();
     _context = new MyLibraryDbContext();
 }
Exemple #4
0
 public AddCustomerForm()
 {
     InitializeComponent();
     _context = new MyLibraryDbContext();
 }
 public LoginForm()
 {
     _context = new MyLibraryDbContext();
     InitializeComponent();
 }
 public UnitOfWork(MyLibraryDbContext context)
 {
     _context = context;
 }
 public AddAuthorForm()
 {
     _context = new MyLibraryDbContext();
     InitializeComponent();
 }
 public Repository(MyLibraryDbContext context)
 {
     _context = context;
     _dbSet   = context.Set <TEntity>();
 }