In your application, information about all courses is stored in a Course table. Some courses are online and additional information about online courses is stored in an OnlineCourse table. All other courses are on campus and additional information about online courses is stored in an OnsiteCourse table.

You generate an Entity Data Model from the database and then define inheritance relationships between the Course and OnlineCourse entities and the Course and OnsiteCourse entities. You need to ensure that application code is prevented from creating a Course entity directly.

What should you do?

 Posted by Rajkatie on 8/23/2012 | Category: ADO.NET Interview questions | Views: 1997 | Points: 40
Select from following answers:
  1. Mark the Course entity as abstract.
  2. Remove the Course entity from the model.
  3. Add code to a partial class file. Add a Course constructor to the file and throw an exception in the constructor.
  4. All Above

Show Correct Answer


Source: MeasureUp.com | | Alert Moderator 

Comments or Responses

Login to post response