When I change a project's target framework from .NET Core 5 to .NET Core 6, the following code throws an exception, and it cannot be compiled.

```
if (Database.IsMySql())
{
    modelBuilder.MutableEntities()
                .Where(entity => entity.GetProperties().Any(DatabaseHelper.HasGeneratedTimestamp))
                .ForEach(entity =>
                {
                    var properties = entity.GetProperties().Where(DatabaseHelper.HasGeneratedTimestamp);
                    var table = entity.GetTableName();
                    var key = (entity.FindPrimaryKey() ?? throw new InvalidOperationException($"primary key not defined on {table}"))
                                     .Properties
                                     .Select(property => property.Name)
                                     .Apply(columns => columns.Count() > 1 ? $"({columns.Join(", ")})" : columns.First());
                    properties.Where(DatabaseHelper.IsOnInsert).ForEach(property =>
                    {
                        // property.SetDefaultValue(DateTimeOffset.Now);
                    });
                    properties.Where(DatabaseHelper.IsOnUpdate).ForEach(property =>
                    {
                        // // property.SetDefaultValue(DateTimeOffset.Now);
                        // if (property.ValueGenerated == ValueGenerated.OnAddOrUpdate)
                        //     property.SetDefaultValueSql("CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP");
                    });
                });
        }

```

Where `Any(DatabaseHelper.HasGeneratedTimestamp)` throws the following error:

> 
> Cannot convert from 'method group' to 'Func<IMutableProperty, bool>
> 
> 
> 

[![The intellisense of Any()](https://i.stack.imgur.com/uDh5r.png)](https://i.stack.imgur.com/uDh5r.png)

How can I fix this error? Do any packages need to be updated?