c*********e 发帖数: 16335 | 1 DbSet<> 和 List<> 有什么区别?
2个貌似都可以做 Getall(),get(int id),put(object o),delete(int id).
一个是repository class里面的;一个是context class里面的。 |
|
x**n 发帖数: 461 | 2 First, you can not use List<> in a DbContext; Second, DbSet<> doesn't have
the data in memory, at least not all data, most of them are still in the
database; third, can you query a List<>? |
|
x**n 发帖数: 461 | 3 First, you can not use List<> in a DbContext; Second, DbSet<> doesn't have
the data in memory, at least not all data, most of them are still in the
database; third, can you query a List<>? |
|
t********n 发帖数: 728 | 4 DbSet is specific for DB operation, the data is in the Database, List is
more generic, the data is in the memory. |
|
b*******b 发帖数: 613 | 5 quota limit,DBset了daily limit,没法arbiteage掉premium
有investor把ashr卖了 去买别的etf,比如pek |
|