/// <summary> /// Create a new PrdnAttachmentType object. /// </summary> /// <param name="id">Initial value of the ID property.</param> /// <param name="code">Initial value of the Code property.</param> /// <param name="name">Initial value of the Name property.</param> public static PrdnAttachmentType CreatePrdnAttachmentType(global::System.Decimal id, global::System.String code, global::System.String name) { PrdnAttachmentType prdnAttachmentType = new PrdnAttachmentType(); prdnAttachmentType.ID = id; prdnAttachmentType.Code = code; prdnAttachmentType.Name = name; return prdnAttachmentType; }
/// <summary> /// Deprecated Method for adding a new object to the PrdnAttachmentTypes EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPrdnAttachmentTypes(PrdnAttachmentType prdnAttachmentType) { base.AddObject("PrdnAttachmentTypes", prdnAttachmentType); }
public ActionResult _InsertAttType() { PrdnAttachmentType type = new PrdnAttachmentType(); if (TryUpdateModel(type)) { PrdnDBContext.PrdnAttachmentTypes.AddObject(type); PrdnDBContext.SaveChanges(); } return View(AttTypeGridList()); }