I have an irritating problem. I've got two objects which are related on two different columns. The relationships are the same (both one-Many) and the structure is as follows
BRAND table
ID
Name
[Other stuff]
CATEGORY table
ID
Name
BrandID (FK to Brand. Navigation Name Brands)
DynamicBrandID (FK to Brand. Navigation Name DynamicBrands
[Other stuff]
But no matter what I try, I can't get this to work in NHibernate. The HBM files look like they've generated correctly for both objects but no matter what I try, every time I want to insert into category I get an error.
My first question - Am I trying something that NHibernate cannot cope with? It's a legacy database so if that's the case, then I have bigger problems.
Secondly - What's going wrong? I get an error along the lines of :
{"Invalid index 26 for this SqlParameterCollection with Count=26."} - which I can't dig into any more at all so am flying a little blind
thanks for your help