Hi. I am trying to convert a few mappings to NH 3.2's mapping by code.
I cannot find the way to indicate what was done with the "property-
ref" and "not-found" attributes in a ManyToOne() relationship.
Eg:
<many-to-one
name="Client"
column="cCode"
property-ref="ClientCode" // the non-id column to use in the join
not-found="ignore"
/>
ManyToOne(x => x.CardHolder, map => {
map.Column("sClient");
map.PropertyRef(x => x.ClientCode); // No
PropertyRef() method available?
map.NotFound(NotFoundOptions.Ignore); // No NotFound()
method available?
});
Is there an option to accomplish this, or should I use xml mappings
with these cases?
--
You received this message because you are subscribed to the Google Groups
"nhusers" 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/nhusers?hl=en.