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

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -