You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi! There’s a very simple approach to this and reason we don’t include it in our services.
When you build your application you KNOW what your current data layer is, we don’t. In most cases it will probably be EF, but in other cases you could your data stored in JSON files or whatever.
So the simple approach is:
Inject the IDb into your method
Make your query against the DbContext
If you’re getting models that need transformation, like pages & posts, just select the id field and the load the models using the services.
In most production scenarios some level of caching will be used which will keep down database access.
I will try to write up some docs for this with examples.
Hi,
it could be an improvement extend searches for all fields in api services.
Samples
search page by name
search media by filename,
search site by cultures, ....
The text was updated successfully, but these errors were encountered: