-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Query: Translate byte array.IndexOf #19287
Comments
CharIndex over |
[Edited name] |
Nothing in particular @ralmsdeveloper, just to pay close attention to specific return types (bigint/int) as @smitpatel wrote above. |
Hi @roji / @smitpatel I am new to the EFCore repo and have just understood some basic things about the translation (above linked PR helped with that a bit). Here's my initial understanding of this issue (atleast for SqlServer):
Haven't looked into sqlLite for this yet, but it should be easily portable. Before that I wanted to check if I'm on the right track for this? |
@nikhil197 overall yes, but what are you planning to translate the method call to exactly? And why "cast the return value as int"? Note that you'll also need to add proper test coverage too. I'd suggest on concentrating on a SQL Server implementation first, it's also OK if support is added only for SQL Server initially without SQLite (although support in both is obviously better). |
@roji And casting to int is only when And I have tried adding tests as well. I was starting to look into the SQLite change, but I can raise the PR for the changes I have done so far. |
No description provided.
The text was updated successfully, but these errors were encountered: