Will nested Includes or IncludeAll() be re-included in v5?
See original GitHub issueHey Mauricio,
I was wondering, if there will be a re-include of the IncludeAll() like in v4? (or even better a nested Include w/ or w/o circular references)
My generic service function:
public T SingleOrDefault<T>(Expression<Func<T, bool>> expression)
{
if (TenantExist(ConnectionString))
{
using (var db = new LiteDatabase(ConnectionString))
{
var collection = db.GetCollection<T>(typeof(T).Name.ToLower());
return collection.IncludeAll().Find(expression).FirstOrDefault();
}
}
else
return default;
}
Thanks for your awesome work!
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:7
Top Results From Across the Web
Entity Framework - Include Multiple Levels of Properties
The Include() method works quite well for Lists on objects. But what if I need to go two levels deep? For example, the...
Read more >TSConfig Reference - Docs on every TSConfig option
Specifies an allowlist of files to include in the program. An error occurs if any of the files can't be found. {. "...
Read more >JUnit 5 User Guide
To find out what features are available in JUnit 5 and how to use ... Denotes that the annotated class is a non-static...
Read more >Documentation - Ethers.js
When a Contract creates a log, it can include up to 4 pieces of data to be indexed by. The indexed data is...
Read more >Bootstrap 5.3.0
We've revamped our color palette to include all new Sass variables, CSS variables, and utilities for setting color , background-color , and ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I would also love to see
IncludeAll
coming to v5. For us this is a blocking issue as well for the same reasons as for @srcmkr Are there any updates on this?Update: Will the IncludeAll ever come back? atm it’s a blocking feature for us to migrate.