Key first. Definitely. You're going to be giving it a TKey and getting back a TEntity, so put the type parameters in that order.