コード例 #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);