Repository: dotnet/efcore
File: test/EFCore.Sqlite.FunctionalTests/BuiltInDataTypesSqliteTest.cs (C#)

Code before:
            .First();

        Assert.Equal(expectedResults, results);
    }

    [ConditionalFact, UseCulture("tr-TR")] // #37432
    public virtual void Can_query_OrderBy_decimal_with_Turkish_culture()
    {
        using var context = CreateContext();
        var min = new BuiltInDataTypes
        {
            Id = 1,
            TestDecimal = 1.05m
        };
        context.Add(min);

        var middle = new BuiltInDataTypes
        {
            Id = 2,
            TestDecimal = 1.5m
        };
        context.Add(middle);

        var max = new BuiltInDataTypes
        {
            Id = 3,
            TestDecimal = 2.5m
        };
        context.Add(max);

        context.SaveChanges();

        var query = context.Set<BuiltInDataTypes>();

        var results = query
            .OrderBy(e => e.TestDecimal)
            .Select(e => new { e.Id, e.TestDecimal })
            .ToList();

        var expectedResults = query.AsEnumerable()
            .OrderBy(e => e.TestDecimal)
            .Select(e => new { e.Id, e.TestDecimal })
            .ToList();

        Assert.Equal(expectedResults.Count, results.Count);
        for (var i = 0; i < expectedResults.Count; i++)
        {
            Assert.Equal(expectedResults[i].Id, results[i].Id);
            Assert.Equal(expectedResults[i].TestDecimal, results[i].TestDecimal);
        }
    }

Review comment (suggestion):
The test uses IDs 1, 2, and 3, which may conflict with existing test data since tests in this file share the same database. Other similar tests in this file use higher ID ranges (e.g., 220-226). Consider using IDs in a similar high range (e.g., 227, 228, 229) to avoid potential conflicts.
```suggestion
            Id = 227,
            TestDecimal = 1.05m
        };
        context.Add(min);

        var middle = new BuiltInDataTypes
        {
            Id = 228,
            TestDecimal = 1.5m
        };
        context.Add(middle);

        var max = new BuiltInDataTypes
        {
            Id = 229,
```

Code after:
            .First();

        Assert.Equal(expectedResults, results);
    }

    [ConditionalFact, UseCulture("tr-TR")] // #37432
    public virtual void Can_query_OrderBy_decimal_with_Turkish_culture()
    {
        using var context = CreateContext();
        var min = new BuiltInDataTypes
        {
            Id = 227,
            TestDecimal = 1.05m
        };
        context.Add(min);

        var middle = new BuiltInDataTypes
        {
            Id = 228,
            TestDecimal = 1.5m
        };
        context.Add(middle);

        var max = new BuiltInDataTypes
        {
            Id = 229,
            TestDecimal = 2.5m
        };
        context.Add(max);

        context.SaveChanges();
        Fixture.TestSqlLoggerFactory.Clear();

        var query = context.Set<BuiltInDataTypes>();

        var results = query
            .OrderBy(e => e.TestDecimal)
            .Select(e => new { e.Id, e.TestDecimal })
            .ToList();

        var expectedResults = query.AsEnumerable()
            .OrderBy(e => e.TestDecimal)
            .Select(e => new { e.Id, e.TestDecimal })
            .ToList();

        Assert.Equal(expectedResults, results);

        AssertSql(
            """
SELECT "b"."Id", "b"."TestDecimal"
FROM "BuiltInDataTypes" AS "b"