From 126f31fe23d7bdf3c0758a79429f455b8437cbc0 Mon Sep 17 00:00:00 2001 From: Alexis Nowikowski Date: Mon, 27 Mar 2017 23:12:37 +0200 Subject: [PATCH] Update README.md --- README.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 8939f8d..10b2480 100644 --- a/README.md +++ b/README.md @@ -45,18 +45,18 @@ public class MyDbContextFactory : IDbContextFactory ``` 3. In your model you need to declare References using the type LazyReference as in the example below: ```c# -public class Course +public class Department { - private LazyReference _departmentLazy = new LazyReference(); - public Department Department + private LazyReference _administratorLazy = new LazyReference(); + public Instructor Administrator { get { - return _departmentLazy.GetValue(this, nameof(Department)); + return _administratorLazy.GetValue(this, nameof(Administrator)); } set { - _departmentLazy.SetValue(value); + _administratorLazy.SetValue(value); } } }