views:

33

answers:

0

Hello world! There is an issue I want to make choice of what is best code generation template. I consider only two of them POCO and default persistence aware template. In terms of clean code I would like the POCO and as handy one persistence aware template.

I wounder if there are some drawbacks against each template, for instance, generating proxies in run-time for POCO entities which affects performance. I'm also interested in how to apply validation to POCO fields as there are no events generated.

thanks in advance.