当前位置:MCTS(70-515)题库

问题:

[单选]

You are implementing an ASP.NET application that uses LINQ to Entities to access and update the database.The application includes the following method to update a detached entity of type Person.
You need to implement the UpdatePerson method to update the database row that corresponds to the personToEdit object. Which code segment should you use?()

A . _entities.People.Attach(personToEdit); _entities.ObjectStateManager.ChangeObjectState(personToEdit, EntityState.Modified); _entities.SaveChanges();
B . _entities.ObjectStateManager.ChangeObjectState(personToEdit, EntityState.Added);_entities.SaveChanges();
C . _entities.People.ApplyCurrentValues(personToEdit); _entities.SaveChanges();
D . _entities.People.Attach(new Person() { Id = personToEdit.Id });_entities.ObjectStateManager.ChangeObjectState(personToEdit, EntityState.Modified);_entities.SaveChanges();

按照福斯特的方法,把人物分为()和“圆形”两种。 机械喷涂抹灰结束后,应及时将输送泵、输浆管和喷枪清洗干净,等候清洗时间不宜超过()分钟。 A.90 。 B.30 。 C.45 。 D.60。 ()被公认是社会历史批评的重要代表,他运用实证的社会历史方法展开文学批评。 简述需要层次理论在管理中的运用 当项目的产出物用于增加国内市场供应量时其直接效益等于()   所节约的外汇。 所获得的外汇。 所满足的国内市场需求。 使被替代企业减产或停产所释放出来的社会有用资源的价值量。

You are implementing an ASP.NET application that uses LINQ to Entities to access and update the database.The application includes the following method to update a detached entity of type Person.
You need to implement the UpdatePerson method to update the database row that corresponds to the personToEdit object. Which code segment should you use?()

参考答案:

  参考解析

本题暂无解析

在线 客服