EntityFramework-Classic icon indicating copy to clipboard operation
EntityFramework-Classic copied to clipboard

Cte support

Open matt-psaltis opened this issue 5 years ago • 5 comments

Hi there just wondering if there's any plans to support ctes (common table expressions)

matt-psaltis avatar May 18 '19 07:05 matt-psaltis

Hello @SaltyDH ,

Do you have something specific in mind? What exactly you would like we add with CTE?

We are supposed next week to bring the feature ToSelfHierarchyList in EF Classic which used CTE: https://entityframework-extensions.net/to-self-hierarchy-list

Best Regards,

Jonathan

JonathanMagnan avatar May 18 '19 11:05 JonathanMagnan

Something along the lines of this. https://linq2db.github.io/articles/sql/CTE.html

We use it for a variety of bespoke queries to provide the main query with additional data.

matt-psaltis avatar May 18 '19 12:05 matt-psaltis

Look great,

We will for sure look at it next week and see if there is anything we can do.

JonathanMagnan avatar May 18 '19 17:05 JonathanMagnan

@JonathanMagnan did you ever look into this issue?

tsanton avatar Feb 14 '24 13:02 tsanton

Hello @tsanton ,

It might eventually happen, but this is currently not on our priority list at all.

We surely started to use CTE for some features we recently added, like WhereBulkContains, but still do not provide a direct way of using it.

Best Regards,

Jon

JonathanMagnan avatar Feb 14 '24 15:02 JonathanMagnan