How can you associate the new Product_details record to the correct Product details.

DRAG DROP
There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
PassGuideApp uses this service to connect to a MS SQL Server 2008 database
PassGuideDB.
To access data from PassGuideDB ADO.NET Entity Framework is used.
PassGuideApp manages Product and Product_details records.
A new Product_details record, for an existing product, is added. How can you associate the
new Product_details record to the correct Product details.

DRAG DROP
There is MS Visual Studio 2010 and MS .NET Framework 4 application PassGuideApp.
PassGuideApp uses this service to connect to a MS SQL Server 2008 database
PassGuideDB.
To access data from PassGuideDB ADO.NET Entity Framework is used.
PassGuideApp manages Product and Product_details records.
A new Product_details record, for an existing product, is added. How can you associate the
new Product_details record to the correct Product details.

Answer:

Explanation:



Leave a Reply 1

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


John Galt

John Galt

Another shit question, not clear whether the new Product_details record was added to database, or merely created in memory. Based on available choices, I’ll assume the idiots creating this question meant a new Products_details ENTITY was created, and we want to associate it with appropriate Products entity.

The way to do it is as following:

Context.Products.AddObject(Product_details)

So to translate to the available answers it would be:
For the Products entity…
…use the Add Object method…
…add the Products_details entity.

Source:
http://msdn.microsoft.com/en-us/library/vstudio/ee828425%28v=vs.100%29.aspx

I don’t like this answer, and I hope this fucked up/imprecise excuse of a question does not come up during exam.