Jun 17, 2010 at 4:08 PM
Edited Jun 17, 2010 at 8:31 PM
I'm evaluating nHydrate for a Silverlight project that will be built on top of a large legacy database (~700 tables).
I have to say, I really appreciate the fine control over the generated output and the n-tier strategy.
However, it takes several hours to generate the basic model code, let alone the other layers I need :(
I have profiled the code and it appears not to be an nHydrate problem specifically but rather a VS API issue, namely the call to EnvDTE.ProjectItems.AddFromFile(...) which seems to take increasingly more time each time it's called.
I have modified the EnvDTEHelper class in an attempt to minimize the impact by creating a cache of existing items before the generation begins and checking against the cache and only calling AddFromFile if the file is not included in the project already.
This works OK for subsequent runs but (obviously) is irrelevant when starting from scratch.
Is this something anyone else has noticed?
I'm using VS2010 and .Net 4.0...