/// <summary> /// Deprecated Method for adding a new object to the Permissions EntitySet. Consider using the .Add method of the associated ObjectSet<T> property instead. /// </summary> public void AddToPermissions(Permission permission) { base.AddObject("Permissions", permission); }
/// <summary> /// Create a new Permission object. /// </summary> /// <param name="permissionID">Initial value of the PermissionID property.</param> /// <param name="adminID">Initial value of the AdminID property.</param> /// <param name="roleID">Initial value of the RoleID property.</param> public static Permission CreatePermission(global::System.Int32 permissionID, global::System.Int32 adminID, global::System.Int32 roleID) { Permission permission = new Permission(); permission.PermissionID = permissionID; permission.AdminID = adminID; permission.RoleID = roleID; return permission; }