开发者

Fluent 1.2 Join statement not working

I am trying to get fluent 1.2 to work on a project that currently uses v1.1. However the existing join code no longer works. I specify a Join in the map but it never appears in the SQL.

I have a class hierarchy mapped which includes a join (see below). The application uses some legacy tables that cannot be changed. Alternatively I could rewrite the code so that the joined properties can be mapped with a reference. However this is not really valid as it produces a domain object that does not exist.

 public class IndividualMap : SubclassMap<Individual>
    {
        public IndividualMap()
        {
            Map(x => x.Title);
           .....



            Join("UserDefFields", x =>
            {
                x.KeyColumn("id");
                x.Map(y => y.MembershipEnquirySource, "Anl9");
               ....
            }
   开发者_运维技巧       );
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜