Found the answer here by "adding additional level of indirection" we get: public void SetModified(object entity) { Entry(entity).State = EntityState.
確定! 回上一頁