-verbose
Using project 'chiyo'.Using startup project 'chiyo'.Build started...Build succeeded.C:\Program Files\dotnet\dotnet.exe exec --depsfile C:\Code\repos\chiyo\bin\Debug\net9.0\chiyo.deps.json --additionalprobingpath C:\Users\gscat\.nuget\packages --additionalprobingpath "C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages" --runtimeconfig C:\Code\repos\chiyo\bin\Debug\net9.0\chiyo.runtimeconfig.json C:\Users\gscat\.nuget\packages\microsoft.entityframeworkcore.tools\9.0.0\tools\netcoreapp2.0\any\ef.dll migrations add Initial --json --verbose --no-color --prefix-output --assembly C:\Code\repos\chiyo\bin\Debug\net9.0\chiyo.dll --project C:\Code\repos\chiyo\chiyo.csproj --startup-assembly C:\Code\repos\chiyo\bin\Debug\net9.0\chiyo.dll --startup-project C:\Code\repos\chiyo\chiyo.csproj --project-dir C:\Code\repos\chiyo\ --language C# --configuration Debug --working-dir C:\Code\repos\chiyo --root-namespace chiyo --nullableUsing assembly 'chiyo'.Using startup assembly 'chiyo'.Using application base 'C:\Code\repos\chiyo\bin\Debug\net9.0'.Using working directory 'C:\Code\repos\chiyo'.Using root namespace 'chiyo'.Using project directory 'C:\Code\repos\chiyo\'.Remaining arguments: .Finding DbContext classes...Finding IDesignTimeDbContextFactory implementations...Finding DbContext classes in the project...Found DbContext 'DbConnection'.Finding application service provider in assembly 'chiyo'...Finding Microsoft.Extensions.Hosting service provider...Using environment 'Development'.
C#var query = Database.KanbanColumns .Where(c => c.ParentBoardId == boardId) .OrderBy(c => c.Order) .Select(c => new { Column = c, Cards = Database.KanbanCards .Where(a => a.ParentColumnId == c.Id) .OrderBy(a => a.Order) .ToArray() });foreach (var data in query){ yield return new { column = new { data.Column.Id, data.Column.Color, data.Column.Label }, cards = data.Cards .Select(a => new { a.Id, Title = a.CardTitle, Info = new { a.CreatedAt, a.Value, a.Temperature, AssociatedUsers = a.AssociatedUsers .Select(n => AdapterCacheUnit.FetchUser(n)) .Where(n => n != null) .Select(n => new { n!.UniqueId, n.UserName, n.ProfilePictureUrl }) } }) };}
System.InvalidOperationException: The LINQ expression 'n => AdapterCacheUnit.FetchUser(n)' could not be translated.Either rewrite the query in a form that can be translated, or switch to client evaluation explicitly by inserting a callto 'AsEnumerable', 'AsAsyncEnumerable', 'ToList', or 'ToListAsync'. See https://go.microsoft.com/fwlink/?linkid=2101038for more information.