Beispiel #1
0
 public static void OgrenciKaydet(OgrenciModel ogrenci)
 {
     using (IDbConnection cnn = new SQLiteConnection(LoadConnectionString()))
     {
         cnn.Execute("insert into Ogrenciler (OgrenciAD) values (@Ad) ", ogrenci);
     }
 }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            OgrenciModel o = new OgrenciModel();

            o.Ad = textBox1.Text;


            SqliteDataAccess.OgrenciKaydet(o);
        }