Esempio n. 1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the TblMenusInRoles EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTblMenusInRoles(TblMenusInRole tblMenusInRole)
 {
     base.AddObject("TblMenusInRoles", tblMenusInRole);
 }
Esempio n. 2
0
 /// <summary>
 /// Create a new TblMenusInRole object.
 /// </summary>
 /// <param name="roleId">Initial value of the RoleId property.</param>
 /// <param name="menuId">Initial value of the MenuId property.</param>
 /// <param name="oPAdd">Initial value of the OPAdd property.</param>
 /// <param name="oPEdit">Initial value of the OPEdit property.</param>
 /// <param name="oPDelete">Initial value of the OPDelete property.</param>
 /// <param name="oPCancel">Initial value of the OPCancel property.</param>
 /// <param name="oPPrint">Initial value of the OPPrint property.</param>
 /// <param name="menuRoleId">Initial value of the MenuRoleId property.</param>
 public static TblMenusInRole CreateTblMenusInRole(global::System.Int32 roleId, global::System.Int32 menuId, global::System.Boolean oPAdd, global::System.Boolean oPEdit, global::System.Boolean oPDelete, global::System.Boolean oPCancel, global::System.Boolean oPPrint, global::System.Int32 menuRoleId)
 {
     TblMenusInRole tblMenusInRole = new TblMenusInRole();
     tblMenusInRole.RoleId = roleId;
     tblMenusInRole.MenuId = menuId;
     tblMenusInRole.OPAdd = oPAdd;
     tblMenusInRole.OPEdit = oPEdit;
     tblMenusInRole.OPDelete = oPDelete;
     tblMenusInRole.OPCancel = oPCancel;
     tblMenusInRole.OPPrint = oPPrint;
     tblMenusInRole.MenuRoleId = menuRoleId;
     return tblMenusInRole;
 }