There are some Duplicate column between Foreign key and Navigation Property at locode, How to controll it just show one of them? #113
Closed
1257960069
started this conversation in
General
Replies: 2 comments 4 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
@1257960069 You can use the attribute For changing how the FK is used, you can use the Ref attribute, eg public class Employee
{
public int Id { get; set; }
public string FirstName { get; set; }
public string LastName { get; set; }
[Ref(Model = nameof(Employee), RefId = nameof(Id), RefLabel = nameof(LastName))]
public int ReportsTo { get; set; }
//...
} Hope that helps. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Beta Was this translation helpful? Give feedback.
All reactions