-
I'd like to create compiled queries for the ones i commonly use or call in some commands and queries. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You could either create a Get method in the IApplicationDbContext which fetches the data using a compiled query in the ApplicationDbContext implementation. Or you could create a method / property in the IApplicationDbContext which returns the already instantiated compiled query enumerable.
|
Beta Was this translation helpful? Give feedback.
You could either create a Get method in the IApplicationDbContext which fetches the data using a compiled query in the ApplicationDbContext implementation.
Or you could create a method / property in the IApplicationDbContext which returns the already instantiated compiled query enumerable.
In ApplicationDbContext: