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

            o.Ad = textBox1.Text;


            SqliteDataAccess.OgrenciKaydet(o);
        }