Dear All;

I am using mindscape nhibernate designer. This tool can generate code model
to propery and mapping. But cant two model relation. I sended feedback to
mindscape support but i have not a answer now. I am working on make a
solution this problem.

Example :

This file generated from mindscape nhibernate designer.

namespace SampleProject{

partial public class Entity1{
        public virtual long ID{.....}
        public virtual string Name{.....}
        ......
         .....
           ....

    public class Entity1Map:ClassMap<Entity1>{
           // Mapping
    }
}

}


I am create a other partial.

namespace SampleProject{

partial public class Entity1{
     public virtual OtherModelEntity DifferentEntity{.....}

public class Entity1OverrideMap:Entity1Map

public Entity1OverrideMap(){
      Reference(x=>x.DifferentEntity).Column("DifferentEntityID");
}

}
}

this is not working but no error. I looked Diagnostics output and i have
two map file in diagnostigs output but this dont work.

What you do think for this case about. How can i solve this problem?

Best regards.


-- 
Atilla İlhan KARTAL
Web Application & Software Architect
(Java & PHP & Registered Android Developer)
Kuşadası / Aydın / Turkey
www.atillailhankartal.com.tr
twitter.com/TrojanMyth

-- 
You received this message because you are subscribed to the Google Groups 
"nhusers" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/nhusers?hl=en-US.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to