/// <summary>
 /// Create a new RolePermission object.
 /// </summary>
 /// <param name="id">Initial value of the Id property.</param>
 /// <param name="roleId">Initial value of the RoleId property.</param>
 /// <param name="permissionId">Initial value of the PermissionId property.</param>
 public static RolePermission CreateRolePermission(global::System.Int32 id, global::System.Int32 roleId, global::System.Int32 permissionId)
 {
     RolePermission rolePermission = new RolePermission();
     rolePermission.Id = id;
     rolePermission.RoleId = roleId;
     rolePermission.PermissionId = permissionId;
     return rolePermission;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the RolePermissions EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToRolePermissions(RolePermission rolePermission)
 {
     base.AddObject("RolePermissions", rolePermission);
 }