Implement FluentNHibernate join table

I was using the mapping skill found this post to implement FluentNHibernate join table, today trying to upgrade to latest RTM version of FN, failed. The new syntax has been changed to:

            Join("Stakeholder_CV",
                join =>
                {

                    join.Map(prop => prop.StakeholderType, "Stakeholder_Type");
                    join.Map(Reveal.Property<Individual>("Expired"))
                        .Access.CamelCaseField(Prefix.Underscore)
                        .CustomType("string");
                    join.Map(prop => prop.LastApprovalDate, "Last_Approval_Date");
                    join.KeyColumn("Stakeholder_Id");
                });
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s