It shouldn't matter that your mappings are generic, I guess that's an
oversight on our part. Do all the tests pass if you remove that check?

On Sat, Feb 20, 2010 at 5:26 PM, Mira.D <mirapalh...@gmail.com> wrote:

>  The functions IsClassMap, IsSubclassMap and IsFilterDefinition in
> the PersistenceModel actually return false if type.IsGenericType, in
> my model I have some default subclasses witch I map using
> MySubClass<XXX>, MySubClass<YYY>, the mapping is just as follows:
>
> internal class MySubClass<Obj> : SubclassMap<MyClass<Obj>>
> {
>        public MySubClass()
>        {
>            base.Not.LazyLoad();
>            base.DiscriminatorValue(typeof(Obj).FullName);
>            base.References<Obj>(x => x.Record);
>        }
> }
>
>  I know it's not a very good OR logic, but needed to my project and
> with the IsSubclassMap returning false for generic classes I can't get
> it working, I just removed the IsGenericType condition and everything
> seems to be fine so I'm thinking why shouldn't the mapping classes be
> generic classes?
>
>  Regards,
>  Daniel Mirapalheta
>
> --
> You received this message because you are subscribed to the Google Groups
> "Fluent NHibernate" group.
> To post to this group, send email to fluent-nhibern...@googlegroups.com.
> To unsubscribe from this group, send email to
> fluent-nhibernate+unsubscr...@googlegroups.com<fluent-nhibernate%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/fluent-nhibernate?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Fluent NHibernate" group.
To post to this group, send email to fluent-nhibern...@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.

Reply via email to