Do you really want to decorate your class with fluent-nhibernate attributes?
On Tue, Oct 6, 2009 at 12:48 AM, craigp <craigp...@gmail.com> wrote: > > Hi - > > I'm fairly new to fluent-nhibernate; it's looking very good (*finally* > an elegant api for C# db code). > > I'd like to have some way to automatically implement a NaturalKey > scheme -- perhaps by having a NaturalKey attribute that can decorate > each appropriate property in a class, then use reflection (or maybe IL > injection) to generate Equals() and GetHashCode() methods and a unique > table index for all associated columns (the latter could probably be > done via a custom ClassConvention). > > Would such a feature be generally useful? If so, I could try to submit > a patch (feel free to give me alternate design and/or implementation > ideas). > > thanks, > --craig > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Fluent NHibernate" group. To post to this group, send email to fluent-nhibernate@googlegroups.com To unsubscribe from this group, send email to fluent-nhibernate+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/fluent-nhibernate?hl=en -~----------~----~----~----~------~----~------~--~---