70-516 · Question #137
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 LINQ to Entity model…
The correct answer is C. Apply the EdmFunctionAttribute attribute to the method. CHAPTER 6 ADO.NET Entity Framework Lesson 1: What Is the ADO.NET Entity Framework? Model-Defined Functions (page 413-414)
Question
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 LINQ to Entity model to retrieve data from the database. You need to call a function that is defined in the conceptual model from within the LINQ to Entities queries. You create a common language runtime (CLR) method that maps to the function. What should you do next?
Options
- ADeclare the method as static.
- BDeclare the method as abstract.
- CApply the EdmFunctionAttribute attribute to the method.
- DApply the EdmComplexTypeAttribute attribute to the method.
How the community answered
(67 responses)- A16% (11)
- B7% (5)
- C73% (49)
- D3% (2)
Explanation
CHAPTER 6 ADO.NET Entity Framework Lesson 1: What Is the ADO.NET Entity Framework? Model-Defined Functions (page 413-414)
Topics
Community Discussion
No community discussion yet for this question.