-
Notifications
You must be signed in to change notification settings - Fork 19
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
The full-text query parameter for Fulltext Query String is not valid. #16
Comments
You did not describe what problem you are hitting. |
Oh, sorry. I revive an error because he parameter is not valid in the sql function. If I copy 'search' and I use it as in my sql example, it is working. I don't know what it happens in CreateFunction |
What is the error. Provide all the details including stack trace. |
Error StackTrace
Function in WordBankContext.cs
ufn_Search in database
|
Have you tried tracing what EF is sending to the SqlServer (e.g. using Sql Server Profiler)? This should help figure out what is going on. |
Using full-text query in a TVF requires the variable that comes from EF to be the same size as the variable defined in the TVF. By default it will create a variable NVARCHAR(4000) meaning your TVF will need to have an input variable of NVARCHAR(4000).
Full-text query also requires a non blank or a non null value to be passed when called or it will error. |
Worked in my case |
HI,
I have an issue with full-text. The sql script I execute on the server is
My function in the context is
The text was updated successfully, but these errors were encountered: