Hi all,
i'm trying to map a class as such through Loquacious mapping and am facing
the select N+1 issue. I've tried many approaches but am still unable to
solve it.
public class Clazz
{
public AnotherClass prop1 {get;set;}
public string prop2 {get;set;}
}
public class ClazzMap : ClassMapping<Clazz>
{
public ClazzMap()
{
Table("tablename");
ComposedId(map=>
{
map.ManyToOne(x=>x.prop1, m=> m.Fetch(FetchKind.Join));
map.Property(x=>x.prop2);
});
}
}
However i only got the following snippet:
<class name = "clazz" table="tablename">
<composite-id>
<key-many-to-one name="prop1" />
<key-property name="prop2" />
</composite-id>
</class>
even if i set Fetch to FetchKind.Select, there's no change in the output.
Can someone tell me what's happening?
Thanks!
--
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.
For more options, visit https://groups.google.com/groups/opt_out.