/// <summary>
        /// Create a new RoleAssignment object.
        /// </summary>
        /// <param name="userName">Initial value of the UserName property.</param>
        /// <param name="roleName">Initial value of the RoleName property.</param>
        /// <param name="sourceAccountName">Initial value of the SourceAccountName property.</param>
        public static RoleAssignment CreateRoleAssignment(global::System.String userName, global::System.String roleName, global::System.String sourceAccountName)
        {
            RoleAssignment roleAssignment = new RoleAssignment();

            roleAssignment.UserName          = userName;
            roleAssignment.RoleName          = roleName;
            roleAssignment.SourceAccountName = sourceAccountName;
            return(roleAssignment);
        }
 /// <summary>
 /// Create a new RoleAssignment object.
 /// </summary>
 /// <param name="userName">Initial value of the UserName property.</param>
 /// <param name="roleName">Initial value of the RoleName property.</param>
 /// <param name="sourceAccountName">Initial value of the SourceAccountName property.</param>
 public static RoleAssignment CreateRoleAssignment(global::System.String userName, global::System.String roleName, global::System.String sourceAccountName)
 {
     RoleAssignment roleAssignment = new RoleAssignment();
     roleAssignment.UserName = userName;
     roleAssignment.RoleName = roleName;
     roleAssignment.SourceAccountName = sourceAccountName;
     return roleAssignment;
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the RoleAssignments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToRoleAssignments(RoleAssignment roleAssignment)
 {
     base.AddObject("RoleAssignments", roleAssignment);
 }
 /// <summary>
 /// Deprecated Method for adding a new object to the RoleAssignments EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToRoleAssignments(RoleAssignment roleAssignment)
 {
     base.AddObject("RoleAssignments", roleAssignment);
 }