public ActionResult Create(DataGroup_Element dataGroup_Element)
 {
     if (ModelState.IsValid)
     {
         try
         {
             _dataGroup_ElementRepository.AddDataGroup_Element(dataGroup_Element);
             return RedirectToAction("Index");
         }
         catch
         {
             return View(dataGroup_Element);
         }
     }
     else
     {
         return View(dataGroup_Element);
     }
 }
 public void UpdateDataGroup_Element(DataGroup_Element dataGroup_Element)
 {
     db.SubmitChanges();
 }
 public void DeleteDataGroup_Element(DataGroup_Element dataGroup_Element)
 {
     db.DataGroup_Elements.DeleteOnSubmit(dataGroup_Element);
     db.SubmitChanges();
 }
 public void AddDataGroup_Element(DataGroup_Element dataGroup_Element)
 {
     db.DataGroup_Elements.InsertOnSubmit(dataGroup_Element);
     db.SubmitChanges();
 }
Esempio n. 5
0
		private void detach_DataGroup_Elements(DataGroup_Element entity)
		{
			this.SendPropertyChanging();
			entity.DataGroup = null;
		}
Esempio n. 6
0
		private void attach_DataGroup_Elements(DataGroup_Element entity)
		{
			this.SendPropertyChanging();
			entity.DataElement = this;
		}