Found with EF Core spec tests. See EF-223
C# driver repro:
Unable to find source-code formatter for language: c3. Available languages are: actionscript, ada, applescript, bash, c, c#, c++, cpp, css, erlang, go, groovy, haskell, html, java, javascript, js, json, lua, none, nyan, objc, perl, php, python, r, rainbow, ruby, scala, sh, sql, swift, visualbasic, xml, yaml
var client = new MongoClient("mongodb://localhost:27017"); var database = client.GetDatabase("db224"); database.DropCollection("customers"); var collection = database.GetCollection<Customer>("customers"); collection.InsertMany([ new() { Id = 1, City = "London", Country = "UK" }, new() { Id = 2, City = "London", Country = "USA" }, new() { Id = 3, City = "Seattle", Country = "UK" }, new() { Id = 4, City = "Seattle", Country = "USA" } ]); var results = collection.AsQueryable() .Where(c => c.City.Replace("tt", "zz") == "Seazzle") .ToList(); foreach (var result in results) { Console.WriteLine($"Found {result} {result.City} {result.Country}"); } var results2 = collection.AsQueryable() .Select(c => c.City.Replace("tt", "zz")) .ToList(); foreach (var result in results2) { Console.WriteLine($"Found {result}"); } public class Customer { public int Id { get; set; } public string City { get; set; } public string Country { get; set; } }
- is depended on by
-
EF-223 Translate String.Replace
-
- Backlog
-