Пример #1
0
 /// <summary>
 /// Ekleme yapar
 /// </summary>
 /// <param name="_Ad"></param>
 public void Ekle(string _Baslik,int _KategoriId,bool _HaberMi,string _MakaleYazi,string _Gorsel)
 {
     Makale mkl = new Makale();
     mkl.KategoriId = _KategoriId;
     mkl.Baslik = _Baslik;
     mkl.KullaniciId=1;
     mkl.MakaleYazi = _MakaleYazi;
     mkl.HaberMi = _HaberMi;
     mkl.Gorsel = _Gorsel;
     mkl.Tarih = DateTime.Today;
     db.Makales.InsertOnSubmit(mkl);
     db.SubmitChanges();
 }
Пример #2
0
		private void detach_Makales(Makale entity)
		{
			this.SendPropertyChanging();
			entity.Kategori = null;
		}
Пример #3
0
		private void attach_Makales(Makale entity)
		{
			this.SendPropertyChanging();
			entity.Kategori = this;
		}
Пример #4
0
 partial void DeleteMakale(Makale instance);
Пример #5
0
 partial void UpdateMakale(Makale instance);
Пример #6
0
 partial void InsertMakale(Makale instance);