Ant that is part of what AutoMapper does... On Tue, Sep 15, 2009 at 11:22 AM, Anthony Gatlin <[email protected]> wrote:
> > > > On Sep 15, 2:23 am, anthony <[email protected]> wrote: > > > This is in fact exactly what I'm doing now, but it feels somewhat > > extraneous. > > If you have to manually extend every class that might be a bit of > work. One option is to reflect on the assembly and iterate through the > classes. (This is precisely what FNH does when it uses > AddFromAssembly). If you wanted an example, you could look at the FNH > code. I have not reviewed the FNH code, but the actual code is not > hard to write. Once you have reflected against the classes and > dynamically chosen the ones you want, you can generate new wrapper > classes programmatically. Then you can save these in an assembly and > reference it in your code. Any time the 3rd party assembly changes, > just re-rerun your code to build your wrappers. > > > Clearly great minds think, and are named, alike. > > I hope one day to be a great FNH mind.For now, I am just a > newbie. :) > > > --anthony > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---
