Skip to content

Commit 2238792

Browse files
Fixed error in model definition in docs
1 parent 5b7b9bb commit 2238792

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ I recommended always using a projection with the query that is sent to the parse
128128

129129
Below 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
}

0 commit comments

Comments
 (0)