No FindAsync() method on IDbSet<T>
问题 Is there a reason that the FindAsync() method is omitted from the IDbSet<T> interface? Find is part of the interface, it seems odd the async version isn't available. I'm needing to cast to DbSet<T> to access it, which is a bit cumbersome: User user = await ((DbSet<User>)db.Users) .FindAsync("de7d5d4a-9d0f-48ff-9478-d240cd5eb035"); 回答1: If you own the consumer of IDbSet<T> , which I assume that you do because you want to have access to FindAsync() from within the consumer, then a simple