Click here to Skip to main content
15,881,380 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i have 4 tables. link to gathere with ER diagrams. from 4 tables i wantcommon election response value. i want to join four tables using with lambda expression.
var statements = db.Statements.Where(s => s.DivisionID == division.DivisionID);

var Ec = statements.Count(s => s.);

i have 4 tables
1)division
2)satement
3)election
4)election response

1)division table: primary key is divisionid
2)statement table: primary key is statementid(Frkey divisionid)
3)election table :primary key is statementid,frk electionresponseid
4)election response table:primary key electionresponseid

i want to electionresponse value from Election response talbe

rlation ship betweent these table
division table is one and statement table is many
staement table is one and election table is many
election response table is one and election is may
relation are like this

i want to election response value. using with lambda expresion
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900