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.

How to query entities in 8.x?

See original GitHub issue

CloudTable.ExecuteQuery is no longer public in 8.x, and I haven’t been able to find a single sample or piece of documentation that explains how to query entities.

Previously, I could do something like this:

var query = new TableQuery<MyEntity>();                
foreach (var entity in table.ExecuteQuery(query))
{
...
}

Must also queries use ExecuteQuerySegmentedAsync now?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:7
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

9reactions
cocowallacommented, Feb 9, 2017

@erezvani1529 thanks, that is useful to know. It would be great if these samples and the getting started guide could be updated to show correct useage from .NET Core.

0reactions
pemari-msftcommented, Oct 13, 2017

Because of the fact that no async enumerables exist, it’s not feasible to have an executequery method in an async paradigm (see #94 ).

Read more comments on GitHub >

github_iconTop Results From Across the Web

Using a EntityQuery to query data | Entities | 0.8.0-preview.8
For simple queries, you can create a EntityQuery based on an array of component types. The following example defines a EntityQuery that finds...
Read more >
Most efficient way to do simple Entity API queries by node id ...
A very basic 8.x API question. What is the approved/simplest methods of confirming a node matching a certain content type and ID exists,...
Read more >
Working with the Entity API
Working with the Entity API · Check if an object is an entity or a content entity · Get information from entity methods...
Read more >
Added an entity query access API
The module now ships with an entity query access API, which alters entity queries and views to only list the entities that the...
Read more >
Introducing an HTTP API for Drupal 8 Entity Queries
Entity Query API allows API consumers to make queries against any entity in Drupal. From users, to nodes, to configuration entities, this is...
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