private void detach_SSClasses(SSClass entity)
		{
			this.SendPropertyChanging();
			entity.Church = null;
		}
		private void attach_SSClasses(SSClass entity)
		{
			this.SendPropertyChanging();
			entity.Church = this;
		}
 public void Add(SSClass ssClass)
 {
     _db.SSClasses.InsertOnSubmit(ssClass);
     _db.SubmitChanges();
 }
 public void Delete(SSClass ssClass)
 {
     _db.SSClasses.DeleteOnSubmit(ssClass);
     _db.SubmitChanges();
 }
Exemplo n.º 5
0
 //
 // GET: /SSClass/Create
 public ActionResult Create()
 {
     Grace.Models.SSClass ssClass = new Grace.Models.SSClass();
     ssClass.ChurchID = _graceConfigService.ChurchID;
     return View(ssClass);
 }