Ejemplo n.º 1
0
    public MembersDataset GetMembers()
    {
        //Load a list of Member selections
        MembersDataset           ds      = new MembersDataset();
        MembershipUserCollection members = Membership.GetAllUsers();

        foreach (MembershipUser member in members)
        {
            MembersDataset.MembershipTableRow row = ds.MembershipTable.NewMembershipTableRow();
            row.UserName         = member.UserName;
            row.Password         = "";
            row.Email            = member.Email;
            row.IsApproved       = member.IsApproved;
            row.IsLockedOut      = member.IsLockedOut;
            row.CreateDate       = member.CreationDate;
            row.LastLoginDate    = member.LastLoginDate;
            row.Comment          = member.Comment;
            row.IsOnline         = member.IsOnline;
            row.LastActivityDate = member.LastActivityDate;
            row.ClientID         = GetMemberProfile(member.UserName).ClientID;
            ds.MembershipTable.AddMembershipTableRow(row);
        }
        ds.AcceptChanges();
        return(ds);
    }
Ejemplo n.º 2
0
    public MembersDataset GetMembers()
    {
        //Load a list of Member selections
        MembersDataset           ds      = new MembersDataset();
        MembershipUserCollection members = Membership.GetAllUsers();

        foreach (MembershipUser member in members)
        {
            MembersDataset.MembershipTableRow row = ds.MembershipTable.NewMembershipTableRow();
            row.Comment                 = member.Comment;
            row.CreateDate              = member.CreationDate;
            row.Email                   = member.Email;
            row.IsApproved              = member.IsApproved;
            row.IsLockedOut             = member.IsLockedOut;
            row.IsOnline                = member.IsOnline;
            row.LastActivityDate        = member.LastActivityDate;
            row.LastLockoutDate         = member.LastLockoutDate;
            row.LastLoginDate           = member.LastLoginDate;
            row.LastPasswordChangedDate = member.LastPasswordChangedDate;
            row.PasswordQuestion        = member.PasswordQuestion;
            row.UserName                = member.UserName;

            ProfileCommon profile = new ProfileCommon().GetProfile(member.UserName);
            row.UserFullName = profile.UserFullName;
            row.Company      = profile.Company;
            ds.MembershipTable.AddMembershipTableRow(row);
        }
        ds.AcceptChanges();
        return(ds);
    }