I want to order, according to my results, the number of matches in a row string.
So here is the code
.ThenByDescending(p => p.Title.ToLower()
.Split(' ')
.Count(w => words.Any(w.Contains)));
But this brings me an error and says that LINQ cannot parse Splitinto SQL.
LINQ to Entities does not recognize the method 'System.String [] Split (Char [])' method, and this method cannot be translated into a stored expression.
How can I implement Split via LINQ?
For example, for this array, it must be ordered in this way
words = { "a", "ab" }
ab a ggaaag gh
ba ab ggt
dd
source
share