0

我正在阅读有关速度数据库的示例页面,并且想知道这些行:

public Person BestFriend
{
     set
     {
         Update();
         bestFriend = value;
     }
}

为什么在 bestFriend 设置为传入值之前调用 Update()?

4

1 回答 1

1

更新“将对象标记为正在更新,以便在提交事务时写入对象。”

于 2012-08-17T02:09:05.583 回答