Beispiel #1
0
        private void button1_Click(object sender, EventArgs e)
        {
            OkulnoDataContext dc  = new OkulnoDataContext();
            Bolumler          add = new Bolumler();

            {
                add.OkulId   = (int)comboBox1.SelectedValue;
                add.BolumAdi = textBox1.Text;
            };
            dc.Bolumler.InsertOnSubmit(add);
            dc.SubmitChanges();
            dataGridView1.DataSource = from a in dc.Bolumler
                                       join b in dc.Okullar on
                                       a.OkulId equals b.OkulId
                                       select new
            {
                b.OkulAdi,
                a.BolumAdi,
            };
        }
Beispiel #2
0
 private void detach_Bolumler(Bolumler entity)
 {
     this.SendPropertyChanging();
     entity.Okullar = null;
 }
Beispiel #3
0
 partial void DeleteBolumler(Bolumler instance);
Beispiel #4
0
 partial void UpdateBolumler(Bolumler instance);
Beispiel #5
0
 partial void InsertBolumler(Bolumler instance);