Entry (entity).State = EntityState.Modified; , you are not only attaching the entity to the DbContext , you are also marking the whole entity as dirty.
確定! 回上一頁