Skip to content

Commit 33ecd5b

Browse files
committed
docs: mentions IQueryableValuesEnabledDbContext
1 parent f56fded commit 33ecd5b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,10 +91,12 @@ public class Startup
9191

9292
## How Do You Use It?
9393
The `AsQueryableValues` extension method is provided by the `BlazarTech.QueryableValues` namespace; therefore, you must add the following `using` directive to your source code file for it to appear as a method of your [DbContext] instance:
94-
```
94+
```c#
9595
using BlazarTech.QueryableValues;
9696
```
9797

98+
> 💡 If you access your [DbContext] via an interface, you can also make the `AsQueryableValues` extension methods available on it by inheriting from the `IQueryableValuesEnabledDbContext` interface.
99+
98100
Below are a few examples composing a query using the values provided by an [IEnumerable<T>].
99101

100102
### Simple Type Examples

docs/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,12 @@ public class Startup
8787

8888
## How Do You Use It?
8989
The `AsQueryableValues` extension method is provided by the `BlazarTech.QueryableValues` namespace; therefore, you must add the following `using` directive to your source code file for it to appear as a method of your [DbContext] instance:
90-
```
90+
```c#
9191
using BlazarTech.QueryableValues;
9292
```
9393

94+
> 💡 If you access your [DbContext] via an interface, you can also make the `AsQueryableValues` extension methods available on it by inheriting from the `IQueryableValuesEnabledDbContext` interface.
95+
9496
Below are a few examples composing a query using the values provided by an [IEnumerable<T>].
9597

9698
### Simple Type Examples

0 commit comments

Comments
 (0)