McAfee Secure sites help keep you safe from identity theft, credit card fraud, spyware, spam, viruses and online scams
My Cart (0)  

Microsoft 70-516

70-516

Exam Code: 70-516

Exam Name: TS: Accessing Data with Microsoft .NET Framework 4

Updated: Sep 14, 2026

Q & A: 196 Questions and Answers

70-516 Free Demo download

PDF Version Demo PC Test Engine Online Test Engine

Already choose to buy "PDF"

Price: $59.99 

About Microsoft 70-516 Exam

In recent years, many people choose to take Microsoft 70-516 certification exam which can make you get the Microsoft certificate that is the passport to get a better job and get promotions.

How to prepare for Microsoft 70-516 exam and get the certificate? Please refer to Microsoft 70-516 exam questions and answers on ITCertTest.

ITCertTest is a good website that provides all candidates with the latest IT certification exam materials. ITCertTest will provide you with the exam questions and verified answers that reflect the actual exam. The Microsoft 70-516 exam dumps are developed by experienced IT Professionals. 99.9% of hit rate. Guarantee you success in your 70-516 exam with our exam materials.

Furthermore, we are constantly updating our 70-516 exam materials. We will provide our customers with the latest and the most accurate exam questions and answers that cover a comprehensive knowledge point, which will help you easy prepare for 70-516 exam and successfully pass your exam. You just need to spend you 20-30 hours on studying the exam dumps.

ITCertTest provides you not only with the best materials and also with excellent service. If you buy ITCertTest questions and answers, free update for one year is guaranteed. You fail, after you use our Microsoft 70-516 dumps, 100% guarantee to FULL REFUND. You just need to send the scanning copy of your examination report card to us. After confirming, we will refund you.

What's more, before you buy, you can try to use our free demo. We provide you some of Microsoft 70-516 exam questions and answers and you can download it for your reference.

ITCertTest is no doubt your best choice. Using the Microsoft 70-516 training dumps can let you improve the efficiency of your studying so that it can help you save much more time.

Quick and easy: just two steps to finish your order. We will send your products to your mailbox by email, and then you can check your email and download the attachment.

Microsoft 70-516 Exam Syllabus Topics:

SectionWeightObjectives
Topic 1: Managing Connections and Context18%- Work with object contexts
  • 1. Lifetime and scope management
  • 2. ObjectContext and DbContext
  • 3. Detach and attach entities
- Manage database connections
  • 1. Connection pooling
  • 2. Connection strings and configuration
  • 3. Transactions and isolation levels
- Manage concurrency
  • 1. Optimistic concurrency
  • 2. Pessimistic concurrency
Topic 2: Modeling Data20%- Define and model data structures
  • 1. DataSet and DataTable
  • 2. LINQ to SQL model
  • 3. Entity Data Model
- Work with XML data models
  • 1. XML serialization
  • 2. LINQ to XML
- Create and customize entities
  • 1. Associations and relationships
  • 2. Entity Framework inheritance
  • 3. Complex types
Topic 3: Developing and Deploying Reliable Applications18%- Deploy and configure
  • 1. Deployment considerations
  • 2. Config files
- Secure data access
  • 1. Avoiding SQL injection
  • 2. Parameter validation
  • 3. Connection string security
- Implement error handling
  • 1. Validation rules
  • 2. Exception handling for data access
Topic 4: Manipulating Data22%- Synchronize data
  • 1. Conflict resolution
  • 2. Batch updates
- Insert, update, and delete data
  • 1. LINQ to SQL changes
  • 2. Entity Framework CUD operations
  • 3. DataSet updates
- Handle change tracking
  • 1. Refresh and merge options
  • 2. DataSet row states
  • 3. Change tracking in EF
Topic 5: Querying Data22%- Query with ADO.NET
  • 1. SqlCommand and DataReader
  • 2. Parameterized queries
  • 3. Stored procedures
- Query with WCF Data Services
  • 1. Query projection and filtering
  • 2. OData queries
- Query with LINQ
  • 1. LINQ to Entities
  • 2. LINQ to SQL
  • 3. LINQ to DataSet

Microsoft TS: Accessing Data with Microsoft .NET Framework 4 Sample Questions:

Question #1

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application connects to a Microsoft SQL Server database.
You use the following SQL statement to retrieve an instance of a DataSet object named ds:
SELECT CustomerID, CompanyName, ContactName, Address, City FROM dbo.Customers
You need to query the DataSet object to retrieve only the rows where the ContactName field is not NULL. Which code segment should you use?

A. from row in ds.Tables[0].AsEnumerable() where (string)row["ContactName"] != null select row;
B. from row in ds.Tables[0].AsEnumerable() where row.Field<string>("ContactName") != null select row;
C. from row in ds.Tables[0].AsEnumerable() where !Convert.IsDBNull(row.Field<string>("ContactName")) select row;
D. from row in ds.Tables[0].AsEnumerable() where !row.IsNull((string)row["ContactName"]) select row;


Question #2

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application connects to a Microsoft SQL Server database and contains a LINQ to SQL data model.
The data model contains a function named createCustomer that calls a stored procedure.
The stored procedure is also named createCustomer. The createCustomer function has the following
signature.
createCustomer (Guid customerID, String customerName, String address1)
The application contains the following code segment. (Line numbers are included for reference only.)
01 CustomDataContext context = new CustomDataContext(); 02 Guid userID = Guid.NewGuid();
03 String address1 = "1 Main Steet";
04 String name = "Marc";
05 ...
You need to use the createCustomer stored procedure to add a customer to the database. Which code segment should you insert at line 05?

A. context.ExecuteQuery(typeof(Customer), "createCustomer", customer);
B. context.ExecuteCommand("createCustomer", userID, customer1, address1); Customer customer = new Customer() { ID = userID, Address1 = address1, Name = customer1, };
C. context.createCustomer(userID, customer1, address1);
D. context.ExecuteCommand("createCustomer", customer); Customer customer = new Customer() { ID = userID, Address1 = address1, Name = customer1, };


Question #3

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to develop an application that
uses the Entity Framework.
The application defines the following Entity Data Model.

Within the .edmx file, the following function is defined:
<Function Name="Round" ReturnType="Decimal"> <Parameter Name="val" Type="Decimal" /> <DefiningExpression>
CAST(val as Edm.Int32) </DefiningExpression> </Function>
The application includes the following LINQ query.
var query = from detail in context.SalesOrderDetails select detail.LineTotal.Round();
You need to ensure that the Round function executes on the database server when the query is executed. Which code segment should you use?

A. public static class DecimalHelper
{
public static Decimal Round(this Decimal input)
{
return (Decimal)(Int32)input;
}
}
B. public static class DecimalHelper
{
public static SqlDecimal Round(this Decimal input)
{
return SqlDecimal.Round(input, 0);
}
}
C. public static class DecimalHelper
{
[EdmFunction("Edm", "Round")]
public static Decimal Round(this Decimal Amt)
{
throw new NotSupportedException();
}
}
D. public static class DecimalHelper
{
[EdmFunction("SqlServer", "Round")]
public static Decimal Round(this Decimal Amt)
{
throw new NotSupportedException();
}
}


Question #4

You use Microsoft .NET Framework 4.0 to develop an application that uses WCF Data Services to persist entities from the following Entity Data Model.

You create a new Blog instance named newBlog and a new Post instance named newPost as shown in the
following code segment.
(Line numbers are included for reference only.)
01 Blog newBlog = new Blog();
02 Post newPost = new Post();
03 ....
04 Uri serviceUri = new Uri("...");
05 BlogsEntities context = new BlogsEntities(serviceUri);
06 ....
You need to ensure that newPost is related to newBlog through the Posts collection property and that
newPost and newBlog are sent to the service.
Which code segment should you insert at line 06?

A. context.AttachLink(newBlog, "Posts", newPost); context.SaveChanges(SaveChangesOptions.Batch) ;
B. newBlog.Posts.Add(newPost); context.UpdateObject(newBlog); context.UpdateObject(newPost); context.SaveChanges(SaveChangesOptions.Batch);
C. newBlog.Posts.Add(newPost); context.AttachTo("Blogs", newBlog); context.AttachTo("Posts", newPost); context.SaveChanges(SaveChangesOptions.Batch);
D. newBlog.Posts.Add(newPost); context.AddToBlogs(newBlog); context.AddToPosts(newPost); context.SaveChanges(SaveChangesOptions.Batch);


Question #5

You use Microsoft .NET Framework 4.0 to develop an application that connects to a Microsoft SQL Server
200B database.
You populate a SqlDataAdapter by using the following code. (Line numbers are included for reference only.)
01 SqlDataAdapter dataAdapter1 = new SqlDataAdapter("SELECT * FROM
[BlogEntries] ORDER BY CreationDate", connection);
02 cmdBuilder = new SqlCommandBuilder(dataAdapter1);
03 dataAdapter1.Fill(BlogEntryDataSet, "BlogEntries");
04 ....
05 connection.Close();
You need to update the blog owner for all BlogEntry records. Which code segment should you insert at line 04?

A. SqlDataAdapter dataAdapter2 = new SqlDataAdapter(dataAdapterl.UpdateCommand); dataAdapter2.Fill(BlogEntryDataSet, "BlogEntries");
B. foreach(DataRow row in BlogEntryDataSet.Tables["BlogEntries"].Rows) {
row.Item["BlogOwner""] = "New Owner";
}
dataAdapter1.Fill(BlogEntryDataSet, "BlogEntries");
C. foreach(DataRow row in BlogEntryDataSet.Tables["BlogEntries"].Rows) {
row.Item["BlogOwner""] = "New Owner";
}
dataAdapter1.Update(BlogEntryDataSet, "BlogEntries");
D. SqlDataAdapter dataAdapter2 = new SqlDataAdapter("UPDATE [BlogEntries] SET [BlogOwner] = "New
'Owner' 3", connection);
dataAdapter2.Update(BlogEntryDataSet, "BlogEntries");


Solutions:

Question #1
Answer: B
Question #2
Answer: C
Question #3
Answer: C
Question #4
Answer: C
Question #5
Answer: C

1248 Customer ReviewsCustomers Feedback (* Some similar or old comments have been hidden.)

I only found two or three new MCTS questions.

Cliff

Cliff     4.5 star  

Thanks Itcerttest for helping me clear 70-516 exam.

Buck

Buck     4 star  

It is my favorite testing engine for 70-516 exam.

Carey

Carey     5 star  

Passed 70-516 easily.

Harry

Harry     4 star  

Passed 70-516 exam today with 90%. 70-516 dump is valid. please be careful that there are some questions changed. You need to read them carefully.

Judy

Judy     4.5 star  

Passed my 70-516 exam! I feel so happy! Thanks Itcerttest for these real dumps! I can confirm they are valid! Thank you again!

Belle

Belle     4.5 star  

I saw Itcerttest list returning customer can enjoy another 5% discount, haha, I can introduce my friends to you.

Bernie

Bernie     4.5 star  

You know how did it all happen? It was all Itcerttest . If you haven't the name, learn it! My experience tells that Itcerttest is the best source to get pass

Atwood

Atwood     4 star  

This 70-516 dump is still valid, just passed my exam 93% an hour ago. most of the questions are from this dump.

Isaac

Isaac     4 star  

I have bought the 70-516 exam file for a long time, and had no time to prapare for the exam. I received the updates recently so i decided to finish the exam. It is valid and i got about 95% scores. Thanks a lot!

Amanda

Amanda     4 star  

This website provided the prep material for the students.

Tom

Tom     4 star  

Thank you so much!
Glad to find your site.

Alexia

Alexia     4.5 star  

Thank you for your 70-516 dump efforts.

Howar

Howar     4 star  

Your 70-516 dump pdf helped me a lot. Hope you can share more valid dumps to us. I will come to Itcerttest again next test.

Gwendolyn

Gwendolyn     5 star  

Using Itcerttest real exam questions and answers for 70-516 certification exam was like a plug and play mode for me. Just learned the provided material by Itcerttest guide

King

King     5 star  

Wonderful 70-516 exam braindump! We bought it as reference for all our collegues, and we all passed.

Leona

Leona     4.5 star  

Never failed even once with this website-Itcerttest! This 70-516 exam file is really helping guys! You can pass easily if you buy it. Thanks so much!

Gene

Gene     4 star  

I have finished my 70-516 exam and just passed it with a high scores! The 70-516 exam guide are valid and you must study it, Good luck!

Alvin

Alvin     5 star  

Even though there are so many 70-516 exam dumps available online, Itcerttest’s dump is the best among all! I passed the 70-516 exam at the first try. Great!

Verna

Verna     4.5 star  

LEAVE A REPLY

Your email address will not be published. Required fields are marked *

Contact US:  
 [email protected]  Support

Free Demo Download

Popular Vendors
Adobe
Alcatel-Lucent
Avaya
BEA
CheckPoint
CIW
CompTIA
CWNP
EC-COUNCIL
EMC
EXIN
Hitachi
HP
ISC
ISEB
Juniper
Lpi
Network Appliance
Nortel
Novell
SASInstitute
Sybase
Symantec
The Open Group
Tibco
VMware
Zend-Technologies
IBM
Lotus
OMG
Oracle
RES Software
all vendors
Why Choose ITCertTest Testing Engine
 Quality and ValueITCertTest Practice Exams are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development - no all study materials.
 Tested and ApprovedWe are committed to the process of vendor and third party approvals. We believe professionals and executives alike deserve the confidence of quality coverage these authorizations provide.
 Easy to PassIf you prepare for the exams using our ITCertTest testing engine, It is easy to succeed for all certifications in the first attempt. You don't have to deal with all dumps or any free torrent / rapidshare all stuff.
 Try Before BuyITCertTest offers free demo of each product. You can check out the interface, question quality and usability of our practice exams before you decide to buy.