from item in db.Items
join ci in db.ChainStoreItems on item.ItemId equals ci.ItemId
where ci.ChainStoreId == 2
select item
The problem is as follows:
Item has a Set of ChainStoreItems. I want to make a qurey which returns a Item which dont have a Set of ChainStoreItems it should hold only the one specific ChainStoreItem for the selected ChainStore.
so i only want do have the additonal columns in item which came from ChainStoreItem how ever this is possible
thats a sql statement which would do what i want
SELECT ChainStoreItems.ChainStoreId, ChainStoreItems.ItemId, Item.ProcStatus, Item.Del, Item.LastUpdate, ChainStoreItems.AllowToReturn,
ChainStoreItems.AllowToSale
FROM ChainStoreItems INNER JOIN
Item ON ChainStoreItems.ItemId = Item.ItemId
WHERE (ChainStoreItems.ChainStoreId = 140)