High pass rate
It is known to us that our 70-516 learning materials have been keeping a high pass rate all the time. There is no doubt that it must be due to the high quality of our study materials. It is a matter of common sense that pass rate is the most important standard to testify the TS: Accessing Data with Microsoft .NET Framework 4 training files. The high pass rate of our study materials means that our products are very effective and useful for all people to pass their exam and get the related certification. So if you buy the 70-516 study questions from our company, you will get the certification in a shorter time.
More and more people look forward to getting the Microsoft certification by taking an exam. However, the exam is very difficult for a lot of people. Especially if you do not choose the correct study materials and find a suitable way, it will be more difficult for you to pass the TS: Accessing Data with Microsoft .NET Framework 4 exam and get the related certification. If you want to get the related certification in an efficient method, please choose the 70-516 learning materials from our company. We can guarantee that the study materials from our company will help you pass the exam and get the certification in a relaxed and efficient method. Now please share your valuable time to have a look at the introduction about our TS: Accessing Data with Microsoft .NET Framework 4 training files.
Perfect service
In order to make all customers feel comfortable, our company will promise that we will offer the perfect and considerate service for all customers. If you buy the 70-516 training files from our company, you will have the right to enjoy the perfect service. We have employed a lot of online workers to help all customers solve their problem. If you have any questions about the TS: Accessing Data with Microsoft .NET Framework 4 learning materials, do not hesitate and ask us in your anytime, we are glad to answer your questions and help you use our 70-516 study questions well. We believe our perfect service will make you feel comfortable when you are preparing for your exam.
Professional training
All the 70-516 training files of our company are designed by the experts and professors in the field. The quality of our study materials is guaranteed. According to the actual situation of all customers, we will make the suitable study plan for all customers. If you buy the TS: Accessing Data with Microsoft .NET Framework 4 learning materials from our company, we can promise that you will get the professional training to help you pass your exam easily. By our professional training, you will pass your exam and get the related certification in the shortest time.
Microsoft 70-516 Exam Syllabus Topics:
| Section | Weight | Objectives |
|---|---|---|
| Topic 1: Querying Data | 22% | - Query with LINQ
|
| Topic 2: Developing and Deploying Reliable Applications | 18% | - Secure data access
|
| Topic 3: Modeling Data | 20% | - Work with XML data models
|
| Topic 4: Manipulating Data | 22% | - Handle change tracking
|
| Topic 5: Managing Connections and Context | 18% | - Manage concurrency
|
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 2008 database.
You create classes by using LINQ to SQL based on the records shown in the exhibit:
You need to create a LINQ query to retrieve a list of objects that contains the OrderID and CustomerID
properties.
You need to retrieve the total price amount of each Order record. What are two possible ways to achieve
this goal?
(Each correct answer presents a complete solution. Choose two.)
A) from order in dataContext.Orders group order by order.OrderID into g join details in dataContext.Order_Detail on g.Key equals details.OrderID
select new
{
OrderID = details.OrderID,
CustomerID = details.Order.CustomerID,
TotalAmount = details.UnitPrice * details.Quantity
}
B) dataContext.Order_Detail.GroupJoin(dataContext.Orders, d => d.OrderID, o => o.OrderID,
(dts, ord) => new {
OrderID = dts.OrderID,
CustomerID = dts.Order.CustomerID,
TotalAmount = dts.UnitPrice * dts.Quantity
})
C) dataContext.Orders.GroupJoin(dataContext.Order_Detail, o => o.OrderID, d => d.OrderID,
(ord, dts) => new {
OrderID = ord.OrderID,
CustomerID = ord.CustomerID,
TotalAmount = dts.Sum(od => od.UnitPrice *
od.Quantity)
})
D) from details in dataContext.Order_Detail group details by details.OrderID into g join order in dataContext.Orders on g.Key equals order.OrderID select new {
OrderID = order.OrderID,
CustomerID = order.CustomerID,
TotalAmount = g.Sum(od => od.UnitPrice * od.Quantity)
}
2. You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to develop an application that connects to a MS SQL server 2008 database by User Authentication. The application contains the following connection string:
SERVER=DBSERVER-01; DATABASE=pubs; uid=sa; pwd=secret;
You need to ensure that the password value in the connection string property of a SqlConnection object
does not exist after is called.
What should you add to the connection string?
A) Trusted_Connection = True
B) Persist Security Info = True
C) Persist Security Info = False
D) Trusted_Connection = False
3. You use Microsoft Visual Studio 2010 to create a Microsoft .NET Framework 4.0 application. You create an Entity Data Model for the database tables shown in the following diagram.
You need to modify the .edmx file so that a many-to-many association can exist between the Address and
Customer entities.
Which storage Model section of the .edmx file should you include?
A) <EntityType Name="CustomerAddress">
<Key>
<PropertyRef Name="CustomerAddressID" />
<PropertyRef Name="CustomerID" />
<PropertyRef Name="AddressID" />
</Key>
<Property Name="CustomerAddressID" Type="int" Nullable="false" StoreGeneratedPattern="Identity" /
>
<Property Name="CustomerID" Type="int" Nullable="false"/>
<Property Name="AddressID" Type="int" Nullable="false"/>
<Property Name="AddressType" Type="nvarchar" Nullable="false" MaxLength="50"/>
</EntityType>
B) <EntityType Name="CustomerAddress"> <Key>
<PropertyRef Name="CustomerAddressID" /> </Key> <Property Name="CustomerAddressID" Type="int" Nullable="false" StoreGeneratedPattern="Identity" /
>
<Property Name="CustomerID" Type="int" Nullable="false"/>
<Property Name="AddressID" Type="int" Nullable="false" />
<Property Name="AddressType" Type="nvarchar" Nullable="false" MaxLength="50"/>
</EntityType>
C) <EntityType Name="CustomerAddress">
<Key>
<PropertyRef Name="CustomerID" />
<PropertyRef Name="AddressID" />
</Key>
<Property Name="CustomerID" Type="int" Nullable="false"/>
<Property Name="AddressID" Type="int" Nullable="false"/>
<Property Name="AddressType" Type="nvarchar" Nullable="false" MaxLength="50" />
</EntityType>
D) <EntityType Name="CustomerAddress">
<Key>
<PropertyRef Name="CustomerID" />
<PropertyRef Name="AddressID" />
</Key>
<Property Name="CustomerID" Type="int" Nullable="false" />
<Property Name="AddressID" Type="int" Nullable="false" />
<Property Name="AddressType" Type="nvarchar" Nullable="false" MaxLength="50"
DefaultValue="Home" />
</EntityType>
4. You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4.0 to create an application.
The application uses the ADO.NET Entity Framework to model entities.
The conceptual schema definition language (CSDL) file contains the following XML fragment.
<EntityType Name="Contact"> ... <Property Name="EmailPhoneComplexProperty"
Type="AdventureWorksModel.EmailPhone" Nullable="false" />
</EntityType>
...
<ComplexType Name="EmailPhone">
<Property Type="String" Name="EmailAddress" MaxLength="50" FixedLength="false" Unicode="true" />
<Property Type="String" Name="Phone" MaxLength="25" FixedLength="false" Unicode="true" /> </ComplexType>
You write the following code segment. (Line numbers are included for reference only.)
01 using (EntityConnection conn = new EntityConnection("name=AdvWksEntities"))
02 {
03 conn.Open();
04 string esqlQuery = @"SELECT VALUE contacts FROM
05 AdvWksEntities.Contacts AS contacts
06 WHERE contacts.ContactID == 3";
07 using (EntityCommand cmd = conn.CreateCommand())
08 {
09 cmd.CommandText = esqlQuery;
10 using (EntityDataReader rdr = cmd.ExecuteReader())
11 {
12 while (rdr.Read())
13
{
14
...
15
}
16
}
17
}
18 conn.Close(); 19 }
You need to ensure that the code returns a reference to a ComplexType entity in the model named
EmailPhone.
Which code segment should you insert at line 14?
A) int fieldCount = rdr["EmailPhone"].DataRecordInfo.FieldMetadata.Count; for (int FldIdx = 0; FldIdx < fieldCount; FldIdx++) {
rdr.GetName(FldIdx);
if (rdr.IsDBNull(FldIdx) == false)
{
return rdr["EmailPhone"].GetValue(FldIdx).ToString();
}
}
B) int FldIdx = 0; EntityKey key = record.GetValue(FldIdx) as EntityKey; foreach (EntityKeyMember keyMember in key.EntityKeyValues)
{
return keyMember.Key + " : " + keyMember.Value;
}
C) IExtendedDataRecord record = rdr["EmailPhone"]as IExtendedDataRecord; int FldIdx = 0; return record.GetValue(FldIdx);
D) DbDataRecord nestedRecord = rdr["EmailPhoneComplexProperty"] as DbDataRecord; return nestedRecord;
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 database. You use the ADO.NET Entity Framework to
model entities.
You need to add a new type to your model that organizes scalar values within an entity.
You also need to map stored procedures for managing instances of the type. What should you do?
A) 1. Add the stored procedures in the SSDL file along with a Function attribute.
2.Define a complex type in the CSDL file.
3.Map the stored procedure in the MSL file with a ModificationFunctionElement.
B) 1. Use the edmx designer to import the stored procedures.
2.Derive an entity class from the existing entity as a complex type.
3.Map the stored procedure in the MSL file with an AssociationEnd element.
C) 1. Add the stored procedures in the SSDL file along with a Function attribute.
2.Define a complex type in the CSDL file.
3.Map the stored procedure in the MSL file with an AssociationEnd element.
D) 1. Add the stored procedures in the SSDL file along with a Function attribute.
2.Derive an entity class from the existing entity as a complex type.
3.Map the stored procedure in the MSL file with a ModificationFunctionElement.
Solutions:
| Question # 1 Answer: C,D | Question # 2 Answer: C | Question # 3 Answer: C | Question # 4 Answer: D | Question # 5 Answer: A |
Free Demo






