/// <summary>
 /// Create a new RolePermission object.
 /// </summary>
 /// <param name="roleName">Initial value of the RoleName property.</param>
 /// <param name="permissionId">Initial value of the PermissionId property.</param>
 public static RolePermission CreateRolePermission(global::System.String roleName, global::System.String permissionId)
 {
     RolePermission rolePermission = new RolePermission();
     rolePermission.RoleName = roleName;
     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);
 }