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

Microsoft MCTS 70-516

70-516

Exam Code: 70-516

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

Updated: Jul 30, 2026

Q & A: 196 Questions and Answers

70-516 Free Demo download:

PDF Version Test Engine Online Test Engine

70-516 PDF Price: $129.00  $59.99


About Microsoft 70-516 Exam

There has been a dramatic increase in employee in the field, with many studies projecting that the unemployment rate in this industry is increasing. I don't know whether you are the one in the tide of job losses, if you are a member of the unemployed, you have to think about improving yourself. You should prepare your Microsoft 70-516 actual test to make sure that you will not be replaced if you are a practitioner. Maybe you are too busy to prepare the 70-516 actual test. Our 70-516 pass4sure vce will help you solve the problem. Our 70-516 training materials are created by professional writer which are more secure than other enterprises.

Free Download 70-516 Exam Torrent

Knight Service

Our 70-516 valid cram we produced is featured by its high efficiency and good service. We are online for 24 hours. If you have any questions, just contact us without hesitation. We provide pre-trying experience, which means you can have a try before you buy it. Our 70-516 prep practice is well received. Most of the people who have bought our products have passed the exam and get the certificate.

Our 70-516 study materials have worked hard to provide better user experience. We promise that our content is up to date and once there is a new content, we will update it immediately. We will be responsible for our 70-516 training materials until you have passed the exam. What you need to do is to prepare for the exam and not concern with anything else.

Different versions to be chosen

In order follow the trend of the times, Our 70-516 study guide offers the PDF version to you. 70-516 PDF files can bring you many benefits. It occupies little memory and is easy to store. The important part is that it can be printed and you can read it at any time. PDF version won't have garbled content and the wrong words. Except for this version, Our MCTS 70-516 Latest Torrent also provides online practice. It will be very convenient if you could access the Internet. We have app which has pretty features, you can download after you have bought. What's more, our 70-516 training torrent is quite similar to the real exam circumstance; you can experience the exam in advance.

High passing rate

Our 70-516 training materials are popular because of high quality. People who have made use of our MCTS training materials will have more possibility to get the certificate. The content is written by professions who have studied the exam for many years. When it comes to service and passing rate, our 70-516 prep practice is sure to win out over those of our competitors. Compared with other companies, our 70-516 : TS: Accessing Data with Microsoft .NET Framework 4 training materials carries a guarantee for the exam content. We will be responsible for our 70-516 valid questions which means the content will continue to update until you have passed the exam. We have a variety of versions for you to choose which can meet all kinds of requirements; you can choose a suitable one.

Instant Download: Upon successful payment, Our systems will automatically send the product you have purchased to your mailbox by email. (If not received within 12 hours, please contact us. Note: don't forget to check your spam.)

Microsoft 70-516 Exam Syllabus Topics:

SectionWeightObjectives
Topic 1: Model Data20%- Design conceptual and logical data models
  • 1. Entity Data Model (EDM) concepts
    • 2. Mapping conceptual to relational structures
      Topic 2: Control Data22%- Data manipulation and concurrency
      • 1. Optimistic concurrency handling
        • 2. CRUD operations using Entity Framework
          Topic 3: Form and Organize Reliable Applications18%- Enterprise data access design
          • 1. WCF Data Services integration
            • 2. N-tier architecture with data access layers
              Topic 4: Query Data22%- Use data access technologies
              • 1. ADO.NET queries and commands
                • 2. LINQ to Entities
                  • 3. LINQ to SQL
                    Topic 5: Control Connections and Context18%- Entity Framework context management
                    • 1. ObjectContext / DbContext usage
                      • 2. Connection lifecycle management

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

                        1. You have been assigned the task of writing code that executes an Entity SQL query that returns entity type
                        objects that contain a property of a complex type.
                        (Line numbers are included for reference only.)
                        01 using (EntityCommand cmd = conn.CreateCommand())
                        02 {
                        03 cmd.CommandText = esqlQuery;
                        04 EntityParameter param = new EntityParameter();
                        05 param.ParameterName = "id";
                        06 param.Value = 3;
                        07 cmd.Parameters.Add(param);
                        08 using (EntityDataReader rdr = cmd.ExecuteReader
                        (CommandBehavior.SequentialAccess))
                        09 {
                        10 while (rdr.Read())
                        11 {
                        12 ...
                        13 Console.WriteLine("Email and Phone Info:");
                        14 for (int i = 0; i < nestedRecord.FieldCount; i++)
                        15 {
                        16 Console.WriteLine(" " + nestedRecord.GetName(i) + ": " +
                        nestedRecord.GetValue(i));
                        17 }
                        18 }
                        19 }
                        20 }
                        Which code segment should you insert at line 12?

                        A) DbDataRecord nestedRecord = rdr["EmailPhoneComplexProperty"]
                        B) ComplexDataRecord nestedRecord = rdr["EmailPhoneComplexProperty"]
                        C) DbDataRecord nestedRecord = rdr["EmailPhoneComplexProperty"] as DbDataRecord;
                        D) DataSet nestedRecord = rdr["EmailPhoneComplexProperty"] as ComplexDataSet


                        2. You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create a Windows
                        Communication
                        Foundation (WCF) Data Services service. You deploy the service to the following URL: http://contoso.com/
                        Northwind.svc.
                        You want to query the WCF Data Services service to retrieve a list of customer objects.
                        You need to ensure that the query meets the following requirements:
                        -Only customers that match the following filter criteria are retrieved: City="Seattle" AND Level > 200.
                        -Data is sorted in ascending order by the ContactName and Address properties. Which URL should you use for the query?

                        A) http://contoso.com/Northwind.svc/Customers?$filter=City eq 'Seattle' and Level gt 200 & $orderby=ContactName and Address
                        B) http://contoso.com/Northwind.svc/Customers?$filter=City eq 'Seattle' and Level gt 200 & $orderby=ContactName,Address
                        C) http://contoso.com/Northwind.svc/Customers?City=Seattle & Level gt 200 & $orderby=ContactName and Address
                        D) http://contoso.com/Northwind.svc/Customers?City=Seattle & Level gt 200 & $orderby=ContactName,Address


                        3. The database contains a table named Categories. The Categories table has a primary key identity column
                        named CategoryID.
                        The application inserts new records by using the following stored procedure.
                        CREATE PROCEDURE dbo.InsertCategory @CategoryName nvarchar(15), @Identity int OUT
                        AS INSERT INTO Categories (CategoryName) VALUES(@CategoryName) SET @Identity = SCOPE_IDENTITY() RETURN @@ROWCOUNT
                        You write the following code segment.
                        SqlDataAdapter adapter = new SqlDataAdapter("SELECT categoryID, CategoryName
                        FROM dbo.Categories",connection);
                        adapter.InsertCommand = new SqlCommand("dbo.InsertCategory", connection);
                        adapter.InsertCommand.CommandType = commandType.StoredProcedure;
                        adapter.InsertCommand.Parameters.Add(new SqlParameter("@CategoryName",
                        SqlDbType.NVarChar, 15,"CategoryName"));
                        You need to retrieve the identity value for the newly created record. Which code segment should you add?

                        A) SqlParameter parameter = adapter.InsertCommand.Parameters.Add("@CategoryName", SqlDbType.Int); parameter.Direction = ParameterDirection.Output; parameter = adapter.InsertCommand.Parameters.Add("@Identity", SqlDbType.Int, 0, "CategoryID"); parameter.Direction = ParameterDirection.Output;
                        B) SqlParameter parameter = adapter.InsertCommand.Parameters.Add("@RowCount", SqlDbType.Int); parameter.Direction = ParameterDirection.Output; parameter = adapter.InsertCommand.Parameters.Add("@Identity", SqlDbType.Int, 0, "CategoryID"); parameter.Direction = ParameterDirection.ReturnValue;
                        C) SqlParameter parameter = adapter.InsertCommand.Parameters.Add("@CategoryName", SqlDbType.Int); parameter.Direction = ParameterDirection.Output; parameter = adapter.InsertCommand.Parameters.Add("@Identity", SqlDbType.Int, 0, "CategoryID"); parameter.Direction = ParameterDirection.ReturnValue;
                        D) SqlParameter parameter = adapter.InsertCommand.Parameters.Add("@RowCount", SqlDbType.Int); parameter.Direction = ParameterDirection.ReturnValue; parameter = adapter.InsertCommand.Parameters.Add("@Identity", SqlDbType.Int, 0, "CategoryID"); parameter.Direction = ParameterDirection.Output;


                        4. You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
                        You are creating the data layer of the application. You write the following code segment.
                        (Line numbers are included for reference only.)
                        01 public static SqlDataReader GetDataReader(string sql)
                        02 {
                        03 SqlDataReader dr = null;
                        04 ...
                        05 return dr;
                        06 }
                        You need to ensure that the following requirements are met: The SqlDataReader returned by the GetDataReader method can be used to retreive rows from the database.
                        --
                        SQL connections opened within the GetDataReader method will close when the SqlDataReader is closed.
                        Which code segment should you insert at the line 04?

                        A) SqlConnection cnn = new SqlConnection(strCnn); SqlCommand cmd = new SqlCommand(sql, cnn); cnn.Open(); { try { dr = cmd.ExecuteReader(); } finally {
                        cnn.Close();
                        }
                        }
                        B) SqlConnection cnn = new SqlConnection(strCnn); SqlCommand cmd = new SqlCommand(sql, cnn);
                        cnn.Open();
                        {
                        try
                        {
                        dr = cmd.ExecuteReader(CommandBehavior.CloseConnection);
                        }
                        catch
                        {
                        cnn.Close();
                        throw;
                        }
                        }
                        C) SqlConnection cnn = new SqlConnection(strCnn); SqlCommand cmd = new SqlCommand(sql, cnn); cnn.Open(); { try { dr = cmd.ExecuteReader(); cnn.Close(); } catch {
                        throw;
                        }
                        }
                        D) using(SqlConnection cnn = new SqlConnection(strCnn)) { try { SqlCommand cmd = new SqlCommand(sql, cnn); cnn.Open(); dr = cmd.ExecuteReader(); } catch {
                        throw;
                        }
                        }


                        5. You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
                        The application connects to a Microsoft SQL Server 2008 database. The database includes a table that
                        contains information about all the employees.
                        The database table has a field named EmployeeType that identifies whether an employee is a Contractor or
                        a Permanent employee.
                        You declare the Employee entity base type. You create a new Association entity named Contractor that
                        inherits the Employee base type.
                        You need to ensure that all Contractors are bound to the Contractor class. What should you do?

                        A) Modify the .edmx file to include the following line of code: <Condition ColumnName="EmployeeType" Value="Contractor" />
                        B) Modify the .edmx file to include the following line of code: <NavigationProperty Name="Type" FromRole="EmployeeType" ToRole="Contractor" />
                        C) Use the Entity Data Model Designer to set up an association between the Contractor class and EmployeeType.
                        D) Use the Entity Data Model Designer to set up a referential constraint between the primary key of the Contractor class and EmployeeType.


                        Solutions:

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

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

                        Thank you!
                        Hello guys, I passed 70-516 exam.

                        Miles

                        Miles     4 star  

                        Thank you for the real 70-516 exam.

                        Tobey

                        Tobey     4 star  

                        Perfect!!!! I passed 70-516!!! Your questions are perfect!
                        Yes, your 70-516 questions are just like what you promise.

                        Matt

                        Matt     4 star  

                        I have already passed 70-516 exam with your dumps.

                        Reuben

                        Reuben     4 star  

                        Best exam dumps for 70-516 MCTS exam. I couldn't find the latest sample exams anywhere else. Great work team Itcertmaster. I passed the 70-516 exam with 91%.

                        Hunter

                        Hunter     4.5 star  

                        I was very worried about if I can pass 70-516 exam at first, but with the 70-516 dump, I not only passed my exam but also achieved very good result. Thanks very much!

                        Glenn

                        Glenn     4 star  

                        These 70-516 exam questions are accurate, all questions and answers are correct. And they all showed up in the real exam. It is easy to pass. Guys, you can buy them!

                        Webster

                        Webster     5 star  

                        These 70-516 practice test questions are out of this world. They are specific to the objectives of the exam and thoroughly they give you what you require to pass your exam. By using them recently as part of my revision, i went through my exam without fear and passed. Thanks!

                        Alexia

                        Alexia     5 star  

                        I obtained 91% marks and it was my first attempt. The most important part of my success is that I relied on Itcertmaster for exam prep. Before starting exam preparati

                        Helen

                        Helen     4 star  

                        I had to study a lot and then one of my friends asked me to try Itcertmaster.

                        Norton

                        Norton     4.5 star  

                        Itcertmaster is quite popular among my classmates. I listened to them and bought 70-516 training dumps and really passed the 70-516 exam. very good!

                        Neil

                        Neil     4.5 star  

                        And you never let me down.
                        And now you help me realize this dream.

                        Camille

                        Camille     4.5 star  

                        I have passed 70-516 exam! And i was training with Itcertmaster’s dumps. 100% same questions!

                        Antoine

                        Antoine     5 star  

                        All are real 70-516 questions.

                        Simon

                        Simon     4.5 star  

                        LEAVE A REPLY

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

                        Contact US:  
                         [email protected]
                         [email protected]  Support

                        Free Demo Download

                        Popular Vendors
                        Alcatel-Lucent
                        Avaya
                        CIW
                        CWNP
                        Lpi
                        Nortel
                        Novell
                        SASInstitute
                        Symantec
                        The Open Group
                        Tibco
                        Zend-Technologies
                        Lotus
                        OMG
                        RES Software
                        all vendors