private void button5_Click(object sender, EventArgs e) { dataBaseContex db = new dataBaseContex(); resid r = new resid(); r.SerialNumber = "1111"; r.Date = DateTime.Now; db.resids.Add(r); db.SaveChanges(); }
public menu() { db = new dataBaseContex(); }
public resid() { db = new dataBaseContex(); }
public person() { db = new dataBaseContex(); }