How to loop through dbcontext all dbset entity framework core to get count?

前端 未结 0 1419
北恋
北恋 2021-02-09 10:12

I have 20 Dbset in my context which I want to get the row count for each dbset to make sure all dbset row count is 0. To get the count for one dbset, this is my code:

<         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题