Skip to content

Commit 807740d

Browse files
committed
tidy
1 parent 8a3f3dd commit 807740d

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

MyApp/_pages/autoquery/rdbms.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,11 +24,10 @@ Which is all that's needed to enable the AutoQuery feature. The AutoQueryFeature
2424
`<PackageReference Include="ServiceStack.Server" Version="8.*" />`
2525
:::
2626

27-
If you don't have OrmLite configured it can be registered with a 1-liner by specifying your preferred DialectProvider and Connection String:
27+
If you don't have OrmLite configured it can be registered with a 1-liner by specifying your preferred provider and Connection String:
2828

2929
```csharp
30-
container.Register<IDbConnectionFactory>(
31-
new OrmLiteConnectionFactory(":memory:", SqliteDialect.Provider));
30+
services.AddOrmLite(options => options.UseSqlite(connString));
3231
```
3332

3433
The above config registers an In Memory Sqlite database although as the AutoQuery test suite works in all [supported RDBMS providers](https://github.com/ServiceStack/ServiceStack.OrmLite/#download) you're free to use your registered DB of choice.
@@ -447,7 +446,7 @@ const string NotEqualFormat = "{Field} <> {Value}";
447446
const string IsNull = "{Field} IS NULL";
448447
const string IsNotNull = "{Field} IS NOT NULL";
449448

450-
ImplicitConventions = new Dictionary<string, string>
449+
ImplicitConventions = new()
451450
{
452451
{"%Above%", GreaterThanFormat},
453452
{"Begin%", GreaterThanFormat},

0 commit comments

Comments
 (0)