public void Veriler() { ndata.SaveChanges(); dataGridView1.DataSource = mRepo.SelecAllYön(); }
private void button2_Click(object sender, EventArgs e) { ndata.SaveChanges(); dataGridView1.DataSource = mRepo.SelecAlloff(); }
public void Veriler() { ndata.SaveChanges(); dataGridView1.DataSource = ndata.Masraflar.ToList(); }
public void Delete(int itemid) { ndata.Masraflar.Remove(ndata.Masraflar.Find(itemid)); ndata.SaveChanges(); }