We have a simple relation from Member to MemberType, the FK on Member to MemberType is MemberTypeId.
In the designer there is no Cascade deletion configured(should never delete parent anyway)
Here is a snippet of the generated code og MemberMap:
References(x=>x.MemberType)
.Access.CamelCaseField(Prefix.Underscore)
.Cascade.All()
.Fetch.Select()
.Columns("`MemberTypeID`");
Where does the .Cascade.All() come from, what it actually does is deleting the MemberType record along with the Member record :-( Reallly critical.
We have the latest 4.1 release of LLBLGen designer. Anyone know what to do ?
If we manually remove the .Cascade.All() line from MemberMap file, the parent is not deleted.
One more thing. Is it possible to expose the Member.MemberTypeId on generated code? it's a hazzle to load MemberType in order to store the Member.
Regards, Thomas