Exemplo n.º 1
0
        private void Form1_Load(object sender, EventArgs e)
        {
            EcomDBDataContext db = new EcomDBDataContext();

            dataGridView1.DataSource = db.Employees;
        }
Exemplo n.º 2
0
 private void Form2_Load(object sender, EventArgs e)
 {
     db      = new EcomDBDataContext();
     EmpList = db.Employees.ToList();
     ShowData();
 }