I am having difficulties when attempting to perform One To One mappings
with Interfaces using Map By Code.
For some reason the Class Action is missing from One To One. Because I am
doing everything in my project to interfaces I need to tell NHibernate the
concrete type in the mappings, however, I cannot do this because Class is
not available. Is there a reason this is not available in the One To One
mapping or am I doing something incorrect here?
Example:
OneToOne(p => p.SomeProp, m =>
{
m.Column(c => c.Name("SomeColumn"));
m.ForeignKey("FK");
//m.Class(typeof(SomePropConcreteType)); // This is not
available to me in OneToOne
m.NotNullable(true);
});
This same property however is available to me in ManyToOne
ManyToOne(p => p.SomeProp, m =>
{
m.Column(c => c.Name("SomeColumn"));
m.ForeignKey("FK");
//m.Class(typeof(SomePropConcreteType)); // This is not
available to me in OneToOne
m.NotNullable(true);
});
--
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.