question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Will nested Includes or IncludeAll() be re-included in v5?

See original GitHub issue

Hey 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:open
  • Created 4 years ago
  • Reactions:1
  • Comments:7

github_iconTop GitHub Comments

5reactions
EricVollcommented, Dec 28, 2020

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?

2reactions
srcmkrcommented, Feb 24, 2020

Update: Will the IncludeAll ever come back? atm it’s a blocking feature for us to migrate.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found