public void LoadMembership()
        {
            String selectStatement = "SELECT * FROM dbo.WorkTeamMembership WHERE WorkTeamId = " + Id.ToString() + " ORDER BY SecurityAuthorityId, UserAccountName";

            System.Data.DataTable membershipTable = application.EnvironmentDatabase.SelectDataTable(selectStatement);


            Dictionary <Int64, String> securityAuthorityDictionary = application.SecurityAuthorityDictionary();

            foreach (System.Data.DataRow currentRow in membershipTable.Rows)
            {
                WorkTeamMembership newMembership = new WorkTeamMembership(null);

                newMembership.MapDataFields(currentRow);

                if (securityAuthorityDictionary.ContainsKey(newMembership.SecurityAuthorityId))
                {
                    newMembership.SecurityAuthorityName = securityAuthorityDictionary[newMembership.SecurityAuthorityId];
                }

                newMembership.Application = application;

                membership.Add(newMembership);
            }

            return;
        }
        public Boolean IsEqual(WorkTeamMembership compareMembership)
        {
            Boolean isEqual = true;

            isEqual = isEqual && (this.workTeamId == compareMembership.WorkTeamId);

            isEqual = isEqual && (this.securityAuthorityId != compareMembership.SecurityAuthorityId);

            isEqual = isEqual && (this.userAccountId != compareMembership.UserAccountId);

            isEqual = isEqual && (this.userDisplayName != compareMembership.UserDisplayName);

            isEqual = isEqual && (this.workTeamRole != compareMembership.workTeamRole);

            return(isEqual);
        }