I made a new project as Walaa suggested.
In the old project:
LLBLGen designer says:
PetLicenseCaTransactionMap.PetLicense - PetLicense.CaTransactionMap (m:1)
DocumentTransactionMap.Document - Document.DocumentTransactionMap (1:1)
In the new project:
LLBLGen designer says:
PetLicenseCaTransactionMap.PetLicense - PetLicense.CaTransactionMap (1:1)
DocumentTransactionMap.Document - Document.DocumentTransactionMap (1:1)
So the new project is doing what I expected for the PetLicense - CaTransactionMap relationship.
The part I didn't tell you is this:
The PetLicenseCaTransactionMap table used to have a UniqueKey Constraint consisting of:
CaTransactionId
PetLicenseId
But then I changed it to just use:
PetLicenseId
That is when I started having trouble.
When I did Sync Relational Data Model , the LLBLGen designer saw that the UniqueKey changed, so it said it removed it from the model (or something like that).
But it seems like it never knew the new UniqueKey definition. It never generated a PetLicenseCaTransactionMapEntity.ConstructFilterForUCPetLicenseId() method.
So, I tried syncing again to see if it would add the unique key and create the UC filter. It did not.
So, I tried deleting the *PetLicenseCaTransactionMapEntity * from the project, sync again, reverse-engineer to entity definitions. It still didn't work.
Then I cheated and just changed the XML for this project so both the Entity and table information showed what it should be.
That generated the code I wanted. LOL!
But then a co-worker made a database change and resynced which undid my changes.
Then I posted this thread looking for help.
Fixed It!
Well, just now, I deleted the PetLicenseCaTransactionMapEntity from the project.
Then I synced, but I unselected the PetLicenseCaTransactionMap table.
Then I saved.
Then I synced again, and selected the PetLicenseCaTransactionMap table.
Then I reverse-engineered to an entity.
Now the PetLicenseCaTransactionMap - PetLicense relationship says 1:1.
The PetLicenseCaTransactionEntity.ConstructFilterForUCPetLicenseId() was made.
Edit: How come my postings aren't always showing the line breaks created by hitting the "enter" key?