Automapping, right? Can you supply us with how you're configuring the
automapper? and any overrides you're doing?

On Wed, Dec 2, 2009 at 1:49 PM, Tim <[email protected]> wrote:

> Hi all,
>
> We recently upgraded to FluentNHibernate 1.0.0.593, and made the
> changes necessary e.g. method name changes, dropping "With" etc.,
>
> However, I'm having problems changing a WithTable join into a Join
> method.
>
> Old way:
>
>            mapping.WithTable("aspnet_Membership", m =>
>            {
>                m.Map(x => x.Email, "LoweredEmail");
>                m.WithKeyColumn("UserId");
>            });
>
> New way:
>
>            mapping.Join("aspnet_Membership", m =>
>            {
>                m.Map(x => x.Email, "LoweredEmail");
>                m.KeyColumn("UserId");
>            });
>
>
> The problem is that it's not generating anything to do with
> "aspnet_Membership" in the .hbm.xml file, and it is not performing the
> join on select, so the Email property is always null. Am I doing it
> wrong??
>
> (Few extra things: I am also doing
>
>            mapping.IgnoreProperty(x => x.Email);
>
> to ensure it doesn't look for Email column on the primary table, this
> is how it worked before. I have played with m.Fetch.Join(); and
> m.Not.Optional();, etc., seems to make no difference...)
>
> Many thanks,
> Tim
>
> --
>
> You received this message because you are subscribed to the Google Groups
> "Fluent NHibernate" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<fluent-nhibernate%[email protected]>
> .
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/fluent-nhibernate?hl=en.


Reply via email to