I am using nHydrate to generate business layer in my project. It was working fine to insert/update data in junction table previously but after downloading latest version I am getting foreignkey reference error.
Here is detail of problem:
I have two master tables of PropertyMaster(PropertyId, and otherfields) and
Amenities(AmenitiesId, otherfields) and junction table PropertyAmenities(PropertyAmenitiesId (pk), PropertyId (FK), AmenitiesId(FK).
While inserting record in PropertyAmenities table, I am getting error:
ForeignKeyReferencial Integrity Error: PropertyId (-1) must be exist in parent table.
Previously it was working fine.
Please help me.