Dbset.Attach(entity)只是会将entity attach到context中,而不会告诉context这个实体已经发生修改。所以如果你只是attach entity而之后不做任何处理的话,savechanges() ...
確定! 回上一頁