The state of an entity can always be set directly using the DbContext.Entry method. For example: context.Entry(blog).State = EntityState.
確定! 回上一頁