You need to add a new Customer to the data store without setting all the customer s properties

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. You
use the ADO.NET Entity Data Model (EDM) to define a Customer entity.
You need to add a new Customer to the data store without setting all the customer s properties.
What should you do?

You use Microsoft Visual Studio 2010 and Microsoft .NET Framework 4 to create an application. You
use the ADO.NET Entity Data Model (EDM) to define a Customer entity.
You need to add a new Customer to the data store without setting all the customer s properties.
What should you do?

A.
Call the Create method of the Customer class.

B.
Call the CreateObject method of the Customer class.

C.
Override the Create method for the Customer class.

D.
Override the SaveChanges method for the Customer class.

Explanation:

CreateObject<T> Creates and returns an instance of the requested type .



Leave a Reply 0

Your email address will not be published. Required fields are marked *