Using LINQ to SQl to achieve column Query -


can below query achieved linq sql?

select id,        (select statename b_mstates id=stateidfk) [state name],        cityname  b_mcities 

var result = b_mcities.where(x => b_mstates.where(y => y.id == stateidfk)                                     .contains(x.statename)).tolist(); 

your question pretty tough, because sql wont run(it malformed , missing logic). jist of need do.


Comments

Popular posts from this blog

css - I want to align grid in center -

python - SWIG function not printing output -

oop - Function for all prototypes - Javascript -