예제 #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);