protected bool Equals(EvUserProfile other) { return(string.Equals(_userId, other._userId) && string.Equals(EmailAddress, other.EmailAddress) && AccountExpirationDate.Equals(other.AccountExpirationDate) && string.Equals(Description, other.Description) && string.Equals(DisplayName, other.DisplayName) && Enabled.Equals(other.Enabled) && string.Equals(GivenName, other.GivenName) && string.Equals(MiddleName, other.MiddleName) && string.Equals(SamAccountName, other.SamAccountName) && string.Equals(Surname, other.Surname) && UserCannotChangePassword.Equals(other.UserCannotChangePassword) && string.Equals(UserPrincipalName, other.UserPrincipalName) && string.Equals(VoiceTelephoneNumber, other.VoiceTelephoneNumber)); }
}//END getTrial method // ===================================================================================== /// <summary> /// saveLetter method /// /// Description: /// Updates the user profile in the database. /// The update and add process are the same as in each execution the currentMonth objects are /// set to superseded and then a new object is inserted to the database. /// /// </summary> /// <param name="User">User object</param> // ------------------------------------------------------------------------------------- public int saveItem(EvUserProfile UserProfile) { /// /// Initialise the methods variables and objects. /// int iReturn = 0; /// /// Check that the user id is valid /// /* * if ( UserProfile.UserId == String.Empty ) * { * return EvEvent.IdErrors.UserId; * } * if ( UserProfile.UserCommonName == String.Empty ) * { * return EvEvent.ApplicationErrors.UserId; * } */ return(iReturn); } //END saveItem method
public void AddEvUser(EvUserProfile evUser) { _evUsers.Add(evUser); }