Click here to Skip to main content
15,908,674 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
How do i write the follow query in Visual Basic .NET

SQL
query = From n In query Join sm In _storeMappingRepository.SelectOne On New With { _
    .c1 = n.EntityId, _
    .c2 = "NewsItem" _
} = New With { _
    .c1 = sm.EntityId, _
    .c2 = sm.EntityName _
} Into n_sm From sm In n_sm.DefaultIfEmpty() Where Not n.LimitedToStores OrElse storeId = sm.StoreId Select n
Posted
Comments
Thomas Daniels 2-Apr-14 2:53am    
It's unclear what your question is. Do you get any errors? If yes, on which line?

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