Skip to content

Commit 5d3d5a4

Browse files
authored
Update README.md
1 parent 0577adb commit 5d3d5a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,10 +156,10 @@ To be able to register and persist details of authenticated users we need to reg
156156
As we're already using an RDBMS the obvious choice is to use an `OrmLiteAuthRepository` so users are also persisted to our database, e.g:
157157

158158
```csharp
159-
container.Register<IUserAuthRepository>(c =>
159+
container.Register<IAuthRepository>(c =>
160160
new OrmLiteAuthRepository(c.Resolve<IDbConnectionFactory>()));
161161

162-
container.Resolve<IUserAuthRepository>().InitSchema();
162+
container.Resolve<IAuthRepository>().InitSchema();
163163
```
164164

165165
Which will make use of the existing registered OrmLite ConnectionFactory and run `InitSchema()`,

0 commit comments

Comments
 (0)