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 support for System.Data.SqlClient library in LINQ to SQL queries #23078

Closed
itx-digital opened this issue Oct 22, 2020 · 2 comments
Closed
Labels
closed-no-further-action The issue is closed and no further action is planned. customer-reported

Comments

@itx-digital
Copy link

Hello,

Could you please implement support for System.Data.SqlClient library in LINQ queries that are transformed to SQL?

E.g: SqlFunctions.IsNumeric(String) method
https://docs.microsoft.com/en-us/dotnet/api/system.data.objects.sqlclient.sqlfunctions.isnumeric

Thank you in advance.
Best regards.

@roji
Copy link
Member

roji commented Oct 22, 2020

@evannah unless I'm mistaken, SqlFunctions is part of the old Entity Framework 6 (or even earlier?), and is not supported in Entity Framework Core. EF Core has its own function translations, either from standard .NET methods (e.g. String.StartsWith), or from special methods under EF.Functions (this is the EF Core analog to the older SqlFunctions). Take a look at the SQL Server function mappings doc page.

You can request any missing translations by opening issues. Are you asking specifically for a translation to SQL Server's ISNUMERIC? If so, we can use this issue to track that.

@ajcvickers ajcvickers added closed-no-further-action The issue is closed and no further action is planned. and removed type-enhancement labels Oct 26, 2020
@itx-digital
Copy link
Author

Hello @roji,
Thank you for your answer, and sorry about my late answer.
Yes, I'd like a translation to SQL Server's ISNUMERIC under EF.Functions, please.
Thank you.
Best regards.

@ajcvickers ajcvickers reopened this Oct 16, 2022
@ajcvickers ajcvickers closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-no-further-action The issue is closed and no further action is planned. customer-reported
Projects
None yet
Development

No branches or pull requests

3 participants