dbContext.Entry(entity).State == EntityState.Unchanged 转载于:https://www.cnblogs.com/varorbc/p/8252225.html