EF 判断是否有数据修改

dbContext.Entry(entity).State == EntityState.Unchanged

 

posted @ 2018-01-09 16:41  Varorbc  阅读(1333)  评论(0编辑  收藏  举报