Three Versions to Choose
We have three versions of 070-516 guide materials: TS: Accessing Data with Microsoft .NET Framework 4 available on our test platform, including PDF, Software and APP online. The most popular one is PDF version and you can totally enjoy the convenience of this version, and this is mainly because there is a demo in it, therefore help you choose what kind of 070-516 practice test are suitable to you and make the right choice. Besides PDF version of study materials can be printed into papers so that you are able to write some notes or highlight the emphasis. On the other hand, Software version of our 070-516 study torrent is also welcomed by customers, especially for windows users. As for PPT online version, it is the third party application, as long as you download the app into your computer; you can enjoy the nice service from us.
99% pass rate
We guarantee that if you study our 070-516 guide materials: TS: Accessing Data with Microsoft .NET Framework 4 with dedication and enthusiasm step by step, you will desperately pass the exam without doubt. As the authoritative provider of study materials, we are always in pursuit of high pass rate of 070-516 practice test compared with our counterparts to gain more attention from potential customers. Otherwise if you fail to pass the exam unfortunately with our study materials, we will full refund the products cost to you soon. We believe in the future, our 070-516 study torrent will be more attractive and marvelous with high pass rate.
High Quality and Efficiency
With our professional experts' unremitting efforts on the reform of our 070-516 guide materials: TS: Accessing Data with Microsoft .NET Framework 4, we can make sure that you can be focused and well-targeted in the shortest time when you are preparing a test, simplify complex and ambiguous contents, and point out exam focus in no time. With the assistance of our 070-516 study torrent you will be more distinctive than your fellow workers, because you will learn to make full use of your fragment time to do something more useful in the same amount of time. All the above services of our 070-516 practice test can enable your study more time-saving, energy-saving and labor-saving.
As we all know it is not easy and smooth for everyone to obtain the 070-516 certification, and especially for those people who cannot make full use of their sporadic time and are not able to study in a productive way. But you are lucky, we can provide you with well-rounded services on 070-516 practice test materials to help you improve ability and come over difficulties when you have trouble studying. We would be very pleased and thankful if you can spare your valuable time to have a look about features of our 070-516 study materials.
DOWNLOAD DEMO
Microsoft 070-516 Exam Syllabus Topics:
| Section | Weight | Objectives |
| Topic 1: Modeling Data | 20% | - Create and customize entities
- 1. Associations and relationships
- 2. Complex types
- 3. Entity Framework inheritance
- Define and model data structures
- 1. Entity Data Model
- 2. DataSet and DataTable
- 3. LINQ to SQL model
- Work with XML data models
- 1. XML serialization
- 2. LINQ to XML
|
| Topic 2: Manipulating Data | 22% | - Synchronize data
- 1. Conflict resolution
- 2. Batch updates
- Handle change tracking
- 1. Change tracking in EF
- 2. Refresh and merge options
- 3. DataSet row states
- Insert, update, and delete data
- 1. LINQ to SQL changes
- 2. DataSet updates
- 3. Entity Framework CUD operations
|
| Topic 3: Developing and Deploying Reliable Applications | 18% | - Implement error handling
- 1. Exception handling for data access
- 2. Validation rules
- Deploy and configure
- 1. Config files
- 2. Deployment considerations
- Secure data access
- 1. Parameter validation
- 2. Avoiding SQL injection
- 3. Connection string security
|
| Topic 4: Querying Data | 22% | - Query with WCF Data Services
- 1. Query projection and filtering
- 2. OData queries
- Query with LINQ
- 1. LINQ to SQL
- 2. LINQ to DataSet
- 3. LINQ to Entities
- Query with ADO.NET
- 1. Stored procedures
- 2. SqlCommand and DataReader
- 3. Parameterized queries
|
| Topic 5: Managing Connections and Context | 18% | - Manage concurrency
- 1. Optimistic concurrency
- 2. Pessimistic concurrency
- Manage database connections
- 1. Transactions and isolation levels
- 2. Connection strings and configuration
- 3. Connection pooling
- Work with object contexts
- 1. Lifetime and scope management
- 2. Detach and attach entities
- 3. ObjectContext and DbContext
|
Microsoft TS: Accessing Data with Microsoft .NET Framework 4 Sample Questions:
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.
The application uses a DataTable named OrderDetailTable that has the following columns:
-ID
-OrderID
-ProductID
-Quantity
-LineTotal
Some records contain a null value in the LineTotal field and 0 in the Quantity field. You write the following code segment. (Line numbers are included for reference only.)
01 DataColumn column = new DataColumn("UnitPrice", typeof(double));
02 ...
03 OrderDetailTable.Columns.Add(column);
You need to add a calculated DataColumn named UnitPrice to the OrderDetailTable object.
You also need to ensure that UnitPrice is set to 0 when it cannot be calculated.
Which code segment should you insert at line 02?
A) column.Expression = "LineTotal/Quantity";
B) column.Expression = "LineTotal/ISNULL(Quantity, 1)";
C) column.Expression = "iif(Quantity > 0, LineTotal/Quantity, 0)";
D) column.Expression = "if(Quantity > 0, LineTotal/Quantity, 0)";
2. You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application. The application contains the following XML document:
<bib> <book title="TCP/IP Illusrated" year="1994">
<author>Author1</author>
</book>
<book title="Programming in UNIX" year="1992">
<author>Author1</author>
<author>Author2</author>
<author>Author3</author>
</book>
<book title="Data on the web" year="2000">
<author>Author4</author>
<author>Author3</author>
</book> </bib>
You add the following code fragment. (Line numbers are included for reference only.)
01 public IEnumerable<XElement> GetBooks(string xml)
02 {
03 XDocument doc = XDocument.Parse(xml);
04 ...
05 }
You need to return a list of book XML element that are authored by Author1. Which code segment should you insert at line 04?
A) return doc.Element("bib").Elements() .SelectMany(el => el.Elements() .Where(e2 => e2.Equals(new XElement("author", "Author1"))));
B) return doc.Elements("bib").Elements()
.Where(e1 => e1.Elements().Any(e2 => e2.Equals(new XElement("author", "Author1"))));
C) return doc.Elements("bib").Elements() .Where(e1 => e1.Elements().Any(e2 => (string)e2 == "Author1"));
D) return doc.Element("bib").Elements() .SelectMany(el => el.Elements() .Where(e2 => (string)e2 == "Author1"));
3. You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
You create a Database Access Layer (DAL) that is database-independent. The DAL includes the following
code segment.
(Line numbers are included for reference only.)
01 static void ExecuteDbCommand(DbConnection connection)
02 {
03 if (connection != null){
04 using (connection){
05 try{
06 connection.Open();
07 DbCommand command = connection.CreateCommand();
08 command.CommandText = "INSERT INTO Categories (CategoryName)
VALUES ('Low Carb')";
09 command.ExecuteNonQuery();
10 }
11 ...
12 catch (Exception ex){
13 Trace.WriteLine("Exception.Message: " + ex.Message);
14 }
15 }
16 }
17 }
You need to log information about any error that occurs during data access.
You also need to log the data provider that accesses the database. Which code segment should you insert
at line 11?
A) catch (DbException ex){ Trace.WriteLine("ExceptionType: " + ex.InnerException.Source);
Trace.WriteLine("Message: " + ex.InnerException.Message);
}
B) catch (DbException ex){ Trace.WriteLine("ExceptionType: " + ex.Source);
Trace.WriteLine("Message: " + ex.Message);
}
C) catch (OleDbException ex){ Trace.WriteLine("ExceptionType: " + ex.InnerException.Source);
Trace.WriteLine("Message: " + ex.InnerException.Message);
}
D) catch (OleDbException ex){ Trace.WriteLine("ExceptionType: " + ex.Source);
Trace.WriteLine("Message: " + ex.Message);
}
4. You use Microsoft .NET Framework 4.0 to develop an application that connects to a Microsoft SQL Server
2008 database.
You need to ensure that the application connects to the database server by using SQL Server
authentication.
Which connection string should you use?
A) SERVER=MyServer; DATABASE=AdventureWorks; Integrated Security=false;
B) SERVER=MyServer; DATABASE=AdventureWorks; UID=sa; PWD=secret;
C) SERVER=MyServer; DATABASE=AdventureWorks; Trusted Connection=true;
D) SERVER=MyServer; DATABASE=AdventureWorks; Integrated Security=SSPI; UID=sa; PWD=secret;
5. You use Microsoft .NET Framework 4.0 to develop an application that connects to a Microsoft SQL Server
2008 database.
The application includes a table adapter named taStore, which has the following DataTable.

There is a row in the database that has a ProductID of 680. You need to change the Name column in the
row to "New Product Name".
Which code segment should you use?
A) var dt = new taStore.ProductDataTable(); var ta = new taStoreTableAdapters.ProductTableAdapter(); ta.Fill(dt); var dv = new DataView(); dv.RowFilter = "680"; dv[0]["Name"] = "New Product Name"; ta.Update(dt);
B) var dt = new taStore.ProductDataTable(); var row = dt.NewProductRow(); row.ProductID = 680; row.Name = "New Product Name"; dt.Rows.Add(row) ;
C) var dt = new taStore.ProductDataTable(); var ta = new taStoreTableAdapters.ProductTableAdapter(); ta.Fill(dt); taStore.ProductRow row = (taStore.ProductRow)dt.Rows.Find(680) ; row.Name = "New Product Name"; ta.Update(row);
D) var ta = new taStoreTableAdapters.ProductTableAdapter(); var dt = ta.GetData(); var row = dt.Select("680") ; row[0]["Name"] = "New Product Name"; ta.Update(row);
Solutions:
Question # 1 Answer: C | Question # 2 Answer: C | Question # 3 Answer: B | Question # 4 Answer: B | Question # 5 Answer: C |