I have this Linq expression (FirstOrDefault) and it's very slow. Options is an DbSet
DbOption dbo = ctx.Options.FirstOrDefault(o =>
o.SynN == oLoaded.SynN &&
o.OwnerId == oLoaded.OwnerId &&
o.Context == oLoaded.Context);
There is a way faster to find my options? I see with "Expression", but how can I convert this Linq code in Expression? I have never used it.
Thanks for the support