Maping of Component collections

Discussion of open issues, suggestions and bugs regarding Entity Framework support in ADO.NET Data providers
Post Reply
gr8user
Posts: 16
Joined: Wed 24 Aug 2016 23:45

Maping of Component collections

Post by gr8user » Tue 04 Oct 2016 00:19

Hi,
Could you please check the result for Oracle DB script for "Component Collections Support":
====
Classic mapping of component collections is pretty much alike mapping of a one-to-many association between two entities of a model. The major difference is that the model does not have an entity corresponding to a details table, and instead of it the model contains a complex type consisting of a set of properties similar to a part of the details table field set. Whereas an association is built between an entity corresponding to a master table, and a complex type corresponding to a part of the details table field set. The master entity contains a navigation property which is a reference to a collection of complex type details.

===
When I did all steps I got script contained only Dept table and nothing about Emp table. Is that right?

Shalex
Devart Team
Posts: 8034
Joined: Thu 14 Aug 2008 12:44

Re: Maping of Component collections

Post by Shalex » Wed 05 Oct 2016 15:07

That is correct, because you remove the Emp table from the model when walking through tutorial, and the model stores only some properties of Emp.

Post Reply