Пример #1
0
 public ComputerController(ComputerContext context)
 {
     _context = context;
 }
Пример #2
0
 private void ComputerButton_Click(object sender, EventArgs e)
 {
     ComputerContext.Show(ComputerButton, new Point(1, ComputerButton.Height - 1));
 }
Пример #3
0
 public BaseRepository(ComputerContext context)
 {
     Context = context;
     DbSet   = Context.Set <TEntity>();
 }
Пример #4
0
 public Form1()
 {
     InitializeComponent();
     comp = new ComputerContext();
 }