We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6c62120 commit 126f31fCopy full SHA for 126f31f
1 file changed
README.md
@@ -45,18 +45,18 @@ public class MyDbContextFactory : IDbContextFactory<MyDbContext>
45
```
46
3. In your model you need to declare References using the type LazyReference<T> as in the example below:
47
```c#
48
-public class Course
+public class Department
49
{
50
- private LazyReference<Department> _departmentLazy = new LazyReference<Department>();
51
- public Department Department
+ private LazyReference<Instructor> _administratorLazy = new LazyReference<Instructor>();
+ public Instructor Administrator
52
53
get
54
55
- return _departmentLazy.GetValue(this, nameof(Department));
+ return _administratorLazy.GetValue(this, nameof(Administrator));
56
}
57
set
58
59
- _departmentLazy.SetValue(value);
+ _administratorLazy.SetValue(value);
60
61
62
0 commit comments