Пример #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         Fatura yeniFatura = new Fatura();
         yeniFatura.Abone_ID    = Convert.ToDecimal(AboneID.Text);
         yeniFatura.Fatura_Borc = Convert.ToInt32(FaturaBorc.Text);
         yeniFatura.Fatura_DATE = Convert.ToDateTime(dateTimePicker1.Text);
         yeniFatura.Fatura_ID   = Convert.ToInt32(FaturaID.Text);
         database.Faturas.InsertOnSubmit(yeniFatura);
         database.SubmitChanges();
     }
     catch (System.FormatException g)
     {
         MessageBox.Show("Hiçbir alan boş bırakılamaz");
     }
     catch (System.Data.SqlClient.SqlException v)
     {
         MessageBox.Show("Negatif ID giremezsiniz");
     }
 }
Пример #2
0
 partial void DeleteFatura(Fatura instance);
Пример #3
0
 partial void UpdateFatura(Fatura instance);
Пример #4
0
 partial void InsertFatura(Fatura instance);