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
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)