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