We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0577adb commit 5d3d5a4Copy full SHA for 5d3d5a4
README.md
@@ -156,10 +156,10 @@ To be able to register and persist details of authenticated users we need to reg
156
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:
157
158
```csharp
159
-container.Register<IUserAuthRepository>(c =>
+container.Register<IAuthRepository>(c =>
160
new OrmLiteAuthRepository(c.Resolve<IDbConnectionFactory>()));
161
162
-container.Resolve<IUserAuthRepository>().InitSchema();
+container.Resolve<IAuthRepository>().InitSchema();
163
```
164
165
Which will make use of the existing registered OrmLite ConnectionFactory and run `InitSchema()`,
0 commit comments