试题详情
- 单项选择题You work as an ASP.NET Web Application Developer for SomeCompany. The company uses Visual Studio .NET 2010 as its application development platform. You create an ASP.NET Web application using .NET Framework 4.0. The Web application connects to a SQL Server database. You use the ADO.NET Entity Framework to handle persistence-ignorant entities. You create an ObjectContext object named ObjContext. Subsequently, you change properties on numerous entities. You are required to save the changed entity values in the SQL Server database. Which of the following code segments will you use?()
A、ObjContext.SaveChanges(SaveOptions.DetectChangesBeforeSave);
B、ObjContext.SaveChanges(SaveOptions.AcceptAllChangesAfterSave);
C、ObjContext.SaveChanges(SaveOptions.All);
D、ObjContext.SaveChanges(SaveOptions.None);
- A
关注下方微信公众号,在线模考后查看
热门试题
- You have
- 你是一个管理员Certkiller。CO
- 概述 南桥音像公司是一家音像制品零售
- You have
- Your company has a
- You are
- 你正在定义个一叫做Certkiller
- You are the network
- Your company has a m
- Yourcomputerusesboth
- You work
- You have
- Yournetworkconsistso
- You are cr
- You work
- You use
- You create a Web For
- You have a server n
- Your network consis
- Your company uses M