File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ I recommended always using a projection with the query that is sent to the parse
128
128
129
129
Below is an example of a self referencing table:
130
130
131
- | EmployeeID | FirstName | LastName | ManagerID | Token | Birthdate |
131
+ | EmployeeID | FirstName | LastName | ManagerID | Token | BirthDate |
132
132
| ----------- | --------- | -------- | -------- | ----------- | --------- |
133
133
| 1 | Mary | Joe | null | s38fjsf8dj | 3/3/1921 |
134
134
| 2 | Jane | Jim | 1 | 9fukfdflsl | 2/2/1921 |
@@ -144,7 +144,8 @@ public class Employee
144
144
public string FirstName {get ;set ;}
145
145
public string LastName {get ;set ;}
146
146
public int ? ManagerID {get ;set ;}
147
- public Manager Manager {get ;set ;}
147
+ [ForeignKey (" ManagerID" )]
148
+ public Employee Manager {get ;set ;}
148
149
public string Token {get ;set ;}
149
150
public DateTime BirthDate {get ;set ;}
150
151
}
You can’t perform that action at this time.
0 commit comments