IndexOutOfRangeException Deep in the bowels of NHibernate

后端 未结 1 1076
無奈伤痛
無奈伤痛 2020-11-29 09:21

I have the following mappings:

public class SecurityMap : ClassMap
    {
        public SecurityMap()
        {
            Table(\"Security\         


        
相关标签:
1条回答
  • 2020-11-29 10:10

    Yes its a common problem, you are using the Column "EndDate" twice in your mapping definition (for both Company and PrimaryListing) and that is not allowed. One of them has to go, or have an additional EndDate column (one for each association)

    check this too nHibernate 2.0 - mapping a composite-id *and* many-to-one relationship causes "invalid index" error

    and http://devlicio.us/blogs/derik_whittaker/archive/2009/03/19/nhibernate-and-invalid-index-n-for-this-sqlparametercollection-with-count-n-error.aspx

    0 讨论(0)
提交回复
热议问题