I think the Find() method may be able to do what you’re looking for (DbSet.Find Method).
var someEntity = dbSet.Find(keyValue);
I think the Find() method may be able to do what you’re looking for (DbSet.Find Method).
var someEntity = dbSet.Find(keyValue);