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
128128
129129Below is an example of a self referencing table:
130130
131- | EmployeeID | FirstName | LastName | ManagerID | Token | Birthdate |
131+ | EmployeeID | FirstName | LastName | ManagerID | Token | BirthDate |
132132| ----------- | --------- | -------- | -------- | ----------- | --------- |
133133| 1 | Mary | Joe | null | s38fjsf8dj | 3/3/1921 |
134134| 2 | Jane | Jim | 1 | 9fukfdflsl | 2/2/1921 |
@@ -144,7 +144,8 @@ public class Employee
144144 public string FirstName {get ;set ;}
145145 public string LastName {get ;set ;}
146146 public int ? ManagerID {get ;set ;}
147- public Manager Manager {get ;set ;}
147+ [ForeignKey (" ManagerID" )]
148+ public Employee Manager {get ;set ;}
148149 public string Token {get ;set ;}
149150 public DateTime BirthDate {get ;set ;}
150151}
You can’t perform that action at this time.
0 commit comments