Exception during association fixup with nullable composite foreign keys

前端 未结 2 1568
时光说笑
时光说笑 2021-02-09 22:01

I have a problem with Pocos and nullable foreign keys . I have 2 tables (orders and products) each table have a composite primary key (orderid,orderid2) and (productid,productid

2条回答
  •  臣服心动
    2021-02-09 22:24

    I had to correct the poco TT :

    Chage the lines (381,441 and 475) :

    <#=code.Escape(dependentProperty)#> = <#=code.Escape(navProperty)#>.<#=code.Escape(principalProperty)#>;
    

    by the line :

    <#=code.FieldName(dependentProperty)#> = <#=code.Escape(navProperty)#>.<#=code.Escape(principalProperty)#>;
    

提交回复
热议问题