Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6562923
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T13:46:04+00:00 2026-05-25T13:46:04+00:00

I have a members table with columns member_Id, member_Lastname, member_Firstname, member_Postcode, member_Reference, member_CardNum, and

  • 0

I have a members table with columns

  member_Id,
  member_Lastname,
  member_Firstname,
  member_Postcode,
  member_Reference,
  member_CardNum,

and i have another table mshipoptions with columns

mshipoption_id
mshiptype_id

and i have another table mshiptypes

 mshiptype_id
 mshiptype_name

another table memtomship

 memtomship_id
 mshipoption_id
 member_id

and my entity name is eclipse

at the form load i am filling the datagrid view by using the below method….

private void reportmembers()
{
        MemberControlHelper.Fillmembershiptypes(cbGEMembershiptype); 
        var membersreport = from tsgentity in eclipse.members
                                join memtomships in eclipse.membertomships on tsgentity.member_Id equals memtomships.member_Id
                                join mshipoptiions in eclipse.mshipoptions on memtomships.mshipOption_Id equals mshipoptiions.mshipOption_Id
                                join mshiptypes in eclipse.mshiptypes on mshipoptiions.mshipType_Id equals mshiptypes.mshipType_Id
                                select 
                                new {                                     
                                    tsgentity.member_Id,
                                    tsgentity.member_Lastname,
                                    tsgentity.member_Firstname,
                                    tsgentity.member_Postcode,
                                    tsgentity.member_Reference,
                                    tsgentity.member_CardNum,
                                   mshiptypes.mshipType_Name,                                   
                                };

           if (txtfirstname.Text != "")
           {
              dgvmembersrep.DataSource = membersreport.Where(t => t.member_Firstname == txtlastname.Text).ToList();                
           }
           if (txtcardnum.Text != "")
           { 
                dgvmembersrep.DataSource = membersreport.Where(a => a.member_CardNum == txtcardnum.Text).ToList(); 
           }
}

that was fine,…

My problem is here , i have one comboboxsay (cbgemembershiptype)……

when ever the user select the membership type in (cbgemembershiptype) i want retrieve the details of members those who have that membership type….

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T13:46:04+00:00Added an answer on May 25, 2026 at 1:46 pm

    (Your question is unclear in terms of whether the query you’ve got already does what you want. I’m assuming it does.)

    It’s unclear why you’d want to convert this query into one using lambda expressions. It’s certainly possible, but each join would introduce a new range variable – by the end, the strictly literal translation would end up with a select involving something like

    member_Id = a.b.c.member_Id
    

    … it wouldn’t be very readable at all.

    There are ways of improving it if you’re writing it out by hand, but it still wouldn’t be as clear as the query expression.

    You should definitely know both forms, and write using whichever form is clearest for the query in question – which in this case is definitely the query expression form.

    For more information about how query expressions are translated, see my Edulinq post on that topic.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a member table with columns member_id member_lastname member_firstname i have another table
I have a visit table with columns member_id visit_id visit_logout_datetime(values like this... ' now
I have F.FRIENDID, F.MEMBERID columns in FRIENDS table and M.MEMBERID, M.FIRSTNAME, M.LASTNAME in MEMBERS
I have member table member_Id Last name first name postcode reference another table memberstomships
I have a member Table with member_Id a mmship table with columns mmshipstart date
I have a table called visit with the following columns: visit_Id member_Id visit_Date visit_Time
I have a members table in MySQL CREATE TABLE `members` ( `id` int(10) unsigned
I have a table that contains members names and a field with multiple ID
I have a table Users with columns ID nvarchar(4000) GroupRank int Definition nvarchar(4000) ID
I have a custom DataContext with a Table member... Entry is defined as... [Table(Name=Entry)]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.