Esempio n. 1
0
 //---------------------------------------------------------------------------------------------------
 //-----------------------------------------------------------------------------------------------
 public void SaveNotify(Notify notify)
 {
     using (DonationDataContext dc = GetContext())
     {
         if (notify.NotifyID > 0)
         {
             dc.Notifies.Attach(notify, true);
         }
         else
         {
             notify.CreateDate = DateTime.Now;
             dc.Notifies.InsertOnSubmit(notify);
         }
         dc.SubmitChanges();
     }
 }
 partial void UpdateNotify(Notify instance);
 partial void DeleteNotify(Notify instance);
 partial void InsertNotify(Notify instance);