Dbset.Attach(entity)只是會將entity attach到context中,而不會告訴context這個實體已經發生修改。所以如果你只是attach entity而之後不做任何處理 ...
確定! 回上一頁