Ejemplo n.º 1
0
 /// <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;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the PrdnAttachmentTypes EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; 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());
 }