DRAG DROP
There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
PassGuideApp connects to a MS SQL Server database PassGuideDB.
To model entities ADO NFT Entity Framework is used.
Within PassGuideApp there is an entity Employee which includes properties EmployeeID,
Name, BirthDate.
A function PassGuideFn, which will be used within LINQ entities queries, that returns the
age of the employee must be produced.
What should be done?
What should be done?
DRAG DROP
There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
PassGuideApp connects to a MS SQL Server database PassGuideDB.
To model entities ADO NFT Entity Framework is used.
Within PassGuideApp there is an entity Employee which includes properties EmployeeID,
Name, BirthDate.
A function PassGuideFn, which will be used within LINQ entities queries, that returns the
age of the employee must be produced.
What should be done?
The specified answer seems to be correct. See the following link for the first action: http://msdn.microsoft.com/en-us/library/vstudio/dd456812%28v=vs.100%29.aspx
Year(CurrentDateTime()) – Year(date)
See the following link for the 2nd action:
http://msdn.microsoft.com/en-us/library/vstudio/dd456845%28v=vs.100%29.aspx
One thing I’m not clear on, is why they are not allowing the function to be called directly (Throwing exception).
This is duplicate of question #16, except this one is in VB, and that one is in C#.