Repository navigation
Conversation
Original commit: aae88c7
|
@roji, so when .NET 6.0 (and EF Core 6.0) are released, querying hierarchy data via linq will be lik for SQL Server? |
|
@leonkosak no, ltree doesn't work exactly the same way as SQL Server's hierarchy ID - it's a different feature in a different database, even if it addresses some of the same needs. I'd recommend taking a look at the ltree documentation to see what it looks like - the EFCore.PG provider pretty much exposes what you see there. On a side note, you should be able to test the ltree support right now, by using 6.0.0-preview2. |
|
Should this documentation include an example of this? I'm struggling to find a reference to what my entity itself should look like and how I'd simply set a path within a ltree column, let alone use the new functions to query them. Is this literally just mapping my object with a I'd be more than happy to submit a PR to include something like that in the documentation so the initial dive doesn't feel as much of a mystery to the next guy |
|
@ronnyek we have the following sentence in the LTree translations section of the docs:
We generally don't go into documenting how the PG feature works - that's the responsibility of the PG documentation (linked to from the above), and the above seems sufficient to me - can you explain what exactly you're having trouble with? |
See npgsql/efcore.pg#1592