Table Splitting, what does this actually do?

Discussion of open issues, suggestions and bugs regarding Entity Developer - ORM modeling and code generation tool
Post Reply
RobertK
Posts: 72
Joined: Thu 02 Mar 2017 05:44

Table Splitting, what does this actually do?

Post by RobertK » Sun 24 Feb 2019 23:18

When you use table splitting,
1) Entity developer creates additional new classes for a single table?
2) Entity developer create additional new classes and additional new tables? (just like creating a table with a foreign key?)

It seems to do #2, creates a new class and a new table?
Last edited by RobertK on Sun 24 Feb 2019 23:20, edited 1 time in total.

RobertK
Posts: 72
Joined: Thu 02 Mar 2017 05:44

Re: Table Splitting, what does this actually do?

Post by RobertK » Sun 24 Feb 2019 23:19

What would it do if there are existing data in the current table?

Shalex
Site Admin
Posts: 8743
Joined: Thu 14 Aug 2008 12:44

Re: Table Splitting, what does this actually do?

Post by Shalex » Tue 26 Feb 2019 14:42

After table splitting, Entity Developer works with a single table. If you do Regenerate Storage, the number of tables becomes equal to the number of classes.

RobertK
Posts: 72
Joined: Thu 02 Mar 2017 05:44

Re: Table Splitting, what does this actually do?

Post by RobertK » Sat 09 Mar 2019 13:39

Shalex wrote:
Tue 26 Feb 2019 14:42
After table splitting, Entity Developer works with a single table. If you do Regenerate Storage, the number of tables becomes equal to the number of classes.
What you are saying here is, if you split it without regenerating storage, then ED will deal with a single table but if you regenerate storage then there be 1 class per table. But how does the generated code know its a single table or multiple table?

Shalex
Site Admin
Posts: 8743
Joined: Thu 14 Aug 2008 12:44

Re: Table Splitting, what does this actually do?

Post by Shalex » Wed 13 Mar 2019 14:55

RobertK wrote:how does the generated code know its a single table or multiple table?
Runtime knows this basing on the mapping generated by Entity Developer.

Post Reply