nerdexam
Microsoft

70-516 · Question #30

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 model includes the entity…

The correct answer is A. //Add the following conceptual model function returns the number of years since an. How to: Call Model-Defined Functions in Queries How to: Call Model-Defined Functions as Object Methods

Querying Data

Question

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 model includes the entity shown in the following exhibit:

You need to add a function that returns the number of years since a person was hired. You also need to ensure that the function can be used within LINQ to Entities queries. What should you do?

Options

  • A//Add the following conceptual model function returns the number of years since an
  • B//Add the following conceptual model function returns the number of years since an instructor
  • C//Add the following conceptual model function returns the number of years since an instructor
  • DUse the Entity Data Model Designer to create a complex property named YearsSinceNow

How the community answered

(20 responses)
  • A
    85% (17)
  • B
    5% (1)
  • D
    10% (2)

Explanation

How to: Call Model-Defined Functions in Queries How to: Call Model-Defined Functions as Object Methods

Topics

#Entity Framework#conceptual model function#LINQ to Entities#EDM function

Community Discussion

No community discussion yet for this question.

Full 70-516 Practice