/// <summary> /// Create a new Group 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> /// <param name="appID">Initial value of the AppID property.</param> /// <param name="activeFlag">Initial value of the ActiveFlag property.</param> public static Group CreateGroup(global::System.Decimal id, global::System.String code, global::System.String name, global::System.Decimal appID, global::System.String activeFlag) { Group group = new Group(); group.ID = id; group.Code = code; group.Name = name; group.AppID = appID; group.ActiveFlag = activeFlag; return group; }
/// <summary> /// Deprecated Method for adding a new object to the Groups EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToGroups(Group group) { base.AddObject("Groups", group); }
public ActionResult _InsertAppGroup() { Group group = new Group(); if (TryUpdateModel(group)) { PrdnDBContext.Groups.AddObject(group); PrdnDBContext.SaveChanges(); } return View(AppGroupGridList(group.AppID)); }