Ejemplo n.º 1
0
 /// <summary>
 /// Create a new RoleAction object.
 /// </summary>
 /// <param name="id">Initial value of the ID property.</param>
 /// <param name="roleID">Initial value of the RoleID property.</param>
 /// <param name="moduleID">Initial value of the ModuleID property.</param>
 /// <param name="canView">Initial value of the CanView property.</param>
 /// <param name="canAdd">Initial value of the CanAdd property.</param>
 /// <param name="canEdit">Initial value of the CanEdit property.</param>
 /// <param name="canDelete">Initial value of the CanDelete property.</param>
 /// <param name="recordStatus">Initial value of the RecordStatus property.</param>
 public static RoleAction CreateRoleAction(global::System.Int32 id, global::System.Int32 roleID, global::System.Int32 moduleID, global::System.Boolean canView, global::System.Boolean canAdd, global::System.Boolean canEdit, global::System.Boolean canDelete, global::System.Byte recordStatus)
 {
     RoleAction roleAction = new RoleAction();
     roleAction.ID = id;
     roleAction.RoleID = roleID;
     roleAction.ModuleID = moduleID;
     roleAction.CanView = canView;
     roleAction.CanAdd = canAdd;
     roleAction.CanEdit = canEdit;
     roleAction.CanDelete = canDelete;
     roleAction.RecordStatus = recordStatus;
     return roleAction;
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Deprecated Method for adding a new object to the RoleActions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToRoleActions(RoleAction roleAction)
 {
     base.AddObject("RoleActions", roleAction);
 }