All Free Pass4sure PDF & VCE 70-516 Exam Questions (181-190)

QUESTION 181
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 Entity SQL of the ADO.NET Entity Framework to retrieve data from the database.
You need to define a custom function in the conceptual model. You also need to ensure that the function calculates a value based on properties of the object.
Which two XML element types should you use? (Each correct answer presents part of the solution. Choose two.)

A.    Function
B.    FunctionImport
C.    Dependent
D.    Association
E.    DefiningExpression

Continue reading

All Free Pass4sure PDF & VCE 70-516 Exam Questions (151-160)

QUESTION 151
You are working with an ObjectContext object that targets the mainframe and another ObjectContext object that targets SQL Server. When it’s time to save the changes, you want all changes to be sent to the mainframe and to SQL Server as one transaction. How can you accomplish this?

A.    Just save both ObjectContext objects because they automatically join the same transaction.
B.    Save to the mainframe and use an if statement to verify that the changes were successful. If successful, save to SQL Server.
C.    Wrap the saving of both ObjectContext objects within a TransactionScope object that is implemented in a using statement in which the last line executes the Complete method on the TransactionScope class.
D.    Use a Boolean flag to indicate the success of each save, which will tell you whether the save was successful.

Continue reading

All Free Pass4sure PDF & VCE 70-516 Exam Questions (111-120)

QUESTION 111
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.
You define a Category class by writing the following code segment. (Line numbers are included for reference only.)
01 public class Category
02 {
03    public int CategoryID { get; set; }
04    public string CategoryName { get; set; }
05    public string Description { get; set; }
06    public byte[] Picture { get; set; }
07    …
08 }
You need to add a collection named Products to the Category class. You also need to ensure that the collection supports deferred loading.
Which code segment should you insert at line 07?

Continue reading