I wrote a query like this:
context.PageGroupLangsInSettings
.Where(x => x.PageGroupLang.Language.CaltureId == langCaltureId && x.PageGroupLang.PageGroup.Id == pageGroupId)
.Select(x => new { x.Key, x.Value, Order = 0 })
.Union(
context.PageGroupSavedSettingDetails
.Where(x => x.PageGroupSavedSettings.PageGroupLangs
.Where(y => y.Language.CaltureId == langCaltureId && y.PageGroup.Id == pageGroupId).Any())
.Select(x => new { x.Key, x.Value, Order = 1 })
).ToList()
and now I want to compare 'key' fields with each other using IEqualityCompare but I don't know how should I do it. Thanks :)