Entity Framework - Separate Class Files

I play with the latest Entity Framework, and I would like, if possible, to split the created classes into 1 file per class.

I also want to be able to regenerate these files after splitting.

Although this question asks a question, it is an old one, and the accepted answer is "maybe in the future." Split EDMX for Entity Framework - Split an object layer into separate files - maybe?

Can this be done? If so, how do I do this?

thank

+3
source share
3 answers

EFv4 T4 ( POCOs). . , . , , .

EDMX insto , - . ( 1 2). .

+2
0

Forget about generation crap and start with the latest EF and take the first code approach. Then you have full control over POCO. I'm still a little puzzled by EF, but the first approach to the code will allow you to create classes as you wish, and then associate them with the ORM bits. If you do not want to write your own classes, I do not know how to achieve what I want.

-5
source

All Articles