ExpressionVisitor soft delete

后端 未结 2 366
梦毁少年i
梦毁少年i 2020-12-10 22:09

We\'re having some issues implementing soft delete functionality with entity framework. The idea is to use a repository which is aware of the EF context. On the level of the

2条回答
  •  孤城傲影
    2020-12-10 22:41

    Victory! Today I've created an ExpressionVisitor which appends IsDeleted where clause to each select, even in navigation properties!

提交回复
热议问题