/// <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(); }
private void detach_Makales(Makale entity) { this.SendPropertyChanging(); entity.Kategori = null; }
private void attach_Makales(Makale entity) { this.SendPropertyChanging(); entity.Kategori = this; }
partial void DeleteMakale(Makale instance);
partial void UpdateMakale(Makale instance);
partial void InsertMakale(Makale instance);