/// <summary>
 /// Deprecated Method for adding a new object to the UserPermissions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToUserPermissions(UserPermission userPermission)
 {
     base.AddObject("UserPermissions", userPermission);
 }
 /// <summary>
 /// Create a new UserPermission object.
 /// </summary>
 /// <param name="userPermissionId">Initial value of the userPermissionId property.</param>
 /// <param name="modulePermissionId">Initial value of the modulePermissionId property.</param>
 /// <param name="userId">Initial value of the userId property.</param>
 public static UserPermission CreateUserPermission(global::System.Int32 userPermissionId, global::System.Int32 modulePermissionId, global::System.Int32 userId)
 {
     UserPermission userPermission = new UserPermission();
     userPermission.userPermissionId = userPermissionId;
     userPermission.modulePermissionId = modulePermissionId;
     userPermission.userId = userId;
     return userPermission;
 }