EntityFramework-Reverse-POCO-Code-First-Generator icon indicating copy to clipboard operation
EntityFramework-Reverse-POCO-Code-First-Generator copied to clipboard

Table splitting in DB First

Open sashanth654 opened this issue 5 years ago • 1 comments

We are using reverse poco to generate pocos and mappings for existing DB. We would like to split a massive table into multiple entities. Tried UpdateColumns to hide some columns and then have put them in a hand written poco. Bound the hand written poco to auto generated poco in a partial class.

Wondering if there is a configuration in ReversePOCO where I can pass collection of tables and columns using which tables can be split into multiple entities.

sashanth654 avatar Jan 14 '20 21:01 sashanth654

The multi-context generator allows you to specify exactly which tables and columns you want generated. However the multi-context generator is completely reliant on you specifying what you want for all tables. So if you only want to split a couple, it's not worth the effort.

Just so I'm perfectly clear on how you've split it, could you include an example here.

sjh37 avatar Jan 16 '20 18:01 sjh37