Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add EF.Functions and SQL Like #7611

Merged
merged 2 commits into from Mar 27, 2017
Merged

Add EF.Functions and SQL Like #7611

merged 2 commits into from Mar 27, 2017

Conversation

roji
Copy link
Member

@roji roji commented Feb 14, 2017

To allow relational and providers to start defining extension methods on it, for #2850.

Hope this is more or less what you guys were thinking of, let me know of any nitpicks in terms of class/file naming etc.

Note that no actual methods (e.g. Like) are defined, that can come later in a separate PR.

@roji
Copy link
Member Author

roji commented Feb 17, 2017

Have just amended this PR. Aside from rebasing for VS2017 support, this PR now adds SQL LIKE support via EF.Functions.Like(), providing overloads with and without an escape character.

Note that the SqlTranslatingExpressionVisitor had to be tweaked for it to allow translating method calls on the EFFunctions object.

@roji roji changed the title Add empty EF.Functions Add EF.Functions and SQL Like Feb 17, 2017
@anpete
Copy link
Contributor

anpete commented Mar 7, 2017

@roji Would you mind rebasing again? We renamed the world 😬

@roji
Copy link
Member Author

roji commented Mar 8, 2017

@anpete rebased, also renamed EFFunctions -> DbFunctions (looks slightly better). Let me know if you want any changes

@anpete
Copy link
Contributor

anpete commented Mar 24, 2017

@roji I'm seeing some test failures in ApiConsistencyTest, can you take a look? BTW, sorry for the delay 😄

To allow relational and providers to start defining extension methods on it.

Modify SqlTranslatingExpressionVisitor to recognize the EFFunctions class and
translate methods on it.

Relates to dotnet#2850
Both with and without an escape character.

Relates to dotnet#2850
@roji
Copy link
Member Author

roji commented Mar 25, 2017

Fixed and rebased.

@anpete anpete merged commit 834641e into dotnet:dev Mar 27, 2017
@roji roji mentioned this pull request Jul 12, 2017
@roji roji deleted the ef-functions branch February 15, 2019 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants