public ActionResult DeleteConfirmed(long id) { record_type record_type = db.record_type.Find(id); db.record_type.Remove(record_type); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "RecordType_ID,RecordType_Name")] record_type record_type) { if (ModelState.IsValid) { db.Entry(record_type).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(record_type)); }
public ActionResult Create([Bind(Include = "RecordType_ID,RecordType_Name")] record_type record_type) { if (ModelState.IsValid) { db.record_type.Add(record_type); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(record_type)); }
// GET: record_type/Delete/5 public ActionResult Delete(long?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } record_type record_type = db.record_type.Find(id); if (record_type == null) { return(HttpNotFound()); } return(View(record_type)); }
public override void visit(record_type _record_type) { //get_count(_record_type.rec_vars); }
public virtual void visit(record_type _record_type) { DefaultVisit(_record_type); }
public virtual void post_do_visit(record_type _record_type) { }
public override void visit(record_type _record_type) { DefaultVisit(_record_type); pre_do_visit(_record_type); visit(record_type.parts); visit(record_type.base_type); post_do_visit(_record_type); }
public virtual void visit(record_type _record_type) { }
public override void visit(record_type _record_type) { throw new NotImplementedException(); }
public virtual void visit(record_type _record_type) { }
public virtual void visit(record_type _record_type) { DefaultVisit(_record_type); }
public override void visit(record_type _record_type) { prepare_node(_record_type.base_type, "base_type"); prepare_node(_record_type.parts, "parts"); }
public override void visit(record_type _record_type) { executer.visit(_record_type); if (_record_type.parts != null) this.visit((dynamic)_record_type.parts); if (_record_type.base_type != null) this.visit((dynamic)_record_type.base_type); if (_record_type.attr_list != null) this.visit((dynamic)_record_type.attr_list); if (_record_type.attributes != null) this.visit((dynamic)_record_type.attributes); }