This has always been the case with fluent, we've never had proper support for interfaces. We might be able to address this prior to 1.0, but I'm not certain.
On Wed, Aug 19, 2009 at 8:43 PM, Beefy <[email protected]> wrote: > > So I found a way around this. My configuration code is as follows: > > return Fluently.Configure() > .Database(MsSqlConfiguration.MsSql2005 > .ConnectionString(c => > c.FromConnectionStringWithKey("Test")) > .ShowSql().AdoNetBatchSize(10)) > .Mappings(m => > m.FluentMappings.AddFromAssemblyOf<EntityMap>() > > .Conventions.AddFromAssemblyOf<CustomForeignKeyConvention> > ()) > .ExposeConfiguration(BuildSchema) > .ExposeConfiguration(c => > { > c.SetProperty > ("current_session_context_class", "web"); > }) > .BuildConfiguration().SetProperty > ("generate_statistics", "true"); > > What I found was that doing a ClassMap on an interface and having it's > SubclassMap's be objects wouldn't work. For some reason, it wouldn't > recognize the parent if it was an interface. What it WOULD recognize > was if the parent was an abstract class, which is how I got around > this. Took a few changes, but it worked after that. > > Is that a "feature" or a "bug"? I'm not sure why a SubclassMap > wouldn't recognize an Interface as a legitimate parent... > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
