Entity Framework ObjectStateManager not defined

前端 未结 2 1094
生来不讨喜
生来不讨喜 2021-01-28 04:51

I have a distributed database that I thought might be nice to have events fire on updates so that all users get their data updated immediately and found this nice article; EF Ev

2条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-28 05:27

    Is CertsModelContainer a DbContext or an ObjectContext? Only the latter has an ObjectStateManager.

    If you are using transactions you could use Transaction.TransactionCompleted

提交回复
热议问题