The context cannot be used while the model is being created. This exception may be thrown if the context is used inside the OnModelCreating method or if the same context instance is accessed by multiple threads concurrently. Note that instance members of DbContext and related classes are not guaranteed to be thread safe..net 4.5 訪問數(shù)據(jù)庫有時(shí)會錯(cuò),大部分情況正常,但有時(shí)會報(bào)這個(gè)錯(cuò),
- 1 回答
- 0 關(guān)注
- 730 瀏覽
添加回答
舉報(bào)
0/150
提交
取消