单项选择题
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);
点击查看答案
相关考题
-
单项选择题
WhichclassdefinesthecontractthatASP.NETimplementstoprovidemembershipservicesusingcustommembershipproviders?()
A.FormsAuthentication
B.RoleProvider
C.SqlRoleProvider
D.MembershipProvider -
单项选择题
Whichcontrolallowsyoutobindtodataitemsthatarereturnedfromadatasourceanddisplaythem?()
A.ListView Web Server Control
B.DetailsView Web Server Control
C.DataList Web Server Control
D.Data Web Server Control -
单项选择题
WhichmethodofthePageclasssearchesthepagenamingcontainerforaservercontrolwithaparticularidentifer?()
A.FindFieldTemplate
B.FindControl
C.FindDataSourceControl
D.FindDataControl
