-
Notifications
You must be signed in to change notification settings - Fork 227
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DataAnnotations: Inverse Property is not generated #340
Comments
I made following change to the EF.Reverse.POCO.Core.ttinclude Changed Signature of ForeignKeyAnnotationsProcessing fixed all compilation errors and add following code into ForeignKeyAnnotationsProcessing in EF.Reverse.POCO.tt
The Code is a bit hacky because in the Column.EntityFk I have to parse the ColumnName out of the Definition a little more semantic would be useful here. |
Released v2.37.2 |
Above is a pseudoCode Example of InverseProperty the String value is the name of the Property that holds the Entity of Type SearchCriteriaEntity1 in this case.
Normally it isn't necessary to specify it, but if more than two Collection Properties with the Same Type exist it is necessary to specify or else strange bugs occur.
Currently I use ForeignKeyAnnotationsProcessing to Specify the InverseProperty Attributes.
The text was updated successfully, but these errors were encountered: