We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm having trouble working with a foreign key.
inside a class, I need to put the name of a property + "Id" so that it is recognized as foreign key.
This is not legal ..
Would not it be better to specify a foreign key at the time of mapping?
For example:
ToTable ("Component"); Map (m => m.Id) .Iskey (); Map (m => Description); Map (m => m.Product) .IsForeignKey (); // Suggestion
The text was updated successfully, but these errors were encountered:
Dommel v2 will support the [ForeignKey] attribute which allows you to specify the property name of the foreign key.
[ForeignKey]
Sorry, something went wrong.
how i'm use the ForeignKey attribute?
henkmollema
No branches or pull requests
I'm having trouble working with a foreign key.
inside a class, I need to put the name of a property + "Id" so that it is recognized as foreign key.
This is not legal ..
Would not it be better to specify a foreign key at the time of mapping?
For example:
ToTable ("Component");
Map (m => m.Id) .Iskey ();
Map (m => Description);
Map (m => m.Product) .IsForeignKey (); // Suggestion
The text was updated successfully, but these errors were encountered: