Microsoft
70-451 · Question #59
70-451 Question #59: Real Exam Question with Answer & Explanation
The correct answer is A. Use Entity Framework and DateTime.Now.. See the full explanation below for the reasoning.
Question
Your company is developing an application. The database platform for the application will be vendor-independent. You need to ensure that the application automatically stores the current date and time data when a record is inserted or updated, regardless of the database platform. What should you do?
Options
- AUse Entity Framework and DateTime.Now.
- BCreate a database column that has a default value of GETDATEQ.
- CCreate an INSERT trigger that uses the GETDATEQ function.
- DUse the datetime2 data type.
Community Discussion
No community discussion yet for this question.