Comments for Code Maze https://code-maze.com/ Learn. Code. Succeed. Wed, 18 Jun 2025 13:46:52 +0000 hourly 1 https://wordpress.org/?v=6.7.5 Comment on Execute a PowerShell Script in C# by Arnis Rozitis https://code-maze.com/csharp-run-powershell-script/#comment-68241 Wed, 18 Jun 2025 13:46:52 +0000 https://code-maze.com/?p=91684#comment-68241 Great explanation – thanks. However, I cannot overcome the System.Management.Automation.PSSecurityException: error

]]>
Comment on Implement Roles With Keycloak, Web API and Blazor WebAssembly (RBA) by Marinko Spasojević https://code-maze.com/keycloak-roles-blazor-webassembly-web-api/#comment-67801 Thu, 12 Jun 2025 10:42:21 +0000 https://code-maze.com/?p=123818#comment-67801 In reply to kingone.

Thank you. Glad you like it.

]]>
Comment on Implement Roles With Keycloak, Web API and Blazor WebAssembly (RBA) by kingone https://code-maze.com/keycloak-roles-blazor-webassembly-web-api/#comment-67794 Thu, 12 Jun 2025 09:12:08 +0000 https://code-maze.com/?p=123818#comment-67794 good article

]]>
Comment on Entity Framework Core Best Practices by Marinko Spasojević https://code-maze.com/entity-framework-core-best-practices/#comment-67786 Thu, 12 Jun 2025 06:34:56 +0000 https://code-maze.com/?p=123550#comment-67786 In reply to Guhan Srinivasan.

Hi Guhan. Yes, you can just use Select to project the result, and if you have the reference inside the Select projection, EF Core will create a nice JOIN. Just for this example, the eager loading is always related to using Include and ThenInclude, and the author probably wanted to show that explicitly.

]]>
Comment on Entity Framework Core Best Practices by Guhan Srinivasan https://code-maze.com/entity-framework-core-best-practices/#comment-67780 Thu, 12 Jun 2025 04:53:00 +0000 https://code-maze.com/?p=123550#comment-67780 Hello,
I am glad to read your blog. But I have a doubt on the eager loading that you are using.
var categoriesWithProducts = await applicationDbContext.Suppliers
.Include(c => c.Orders)
.Select(x => new
{
x.Name,
Products = x.Orders!.Select(p => new
{
p.ProductName,
})
})
.ToListAsync();

Here you only access the ProductName so why you use eager? Can’t just project ?
Is that memory efficient

]]>
Comment on Vendor-Agnostic Telemetry Using OpenTelemetry Collector in .NET by Phil Broderick https://code-maze.com/vendor-agnostic-telemetry-opentelemetry-collector-dotnet/#comment-66601 Fri, 23 May 2025 08:59:27 +0000 https://drafts.code-maze.com/?p=84938#comment-66601 In reply to Ashish Maurya.

Hi Ashish,

Can you provide an example of a backend that doesn’t support OTLP format? Most programming languages have support for OpenTelemetry (https://opentelemetry.io/docs/languages/), and I personally haven’t worked on an application that doesn’t have support for it.

]]>
Comment on Vendor-Agnostic Telemetry Using OpenTelemetry Collector in .NET by Ashish Maurya https://code-maze.com/vendor-agnostic-telemetry-opentelemetry-collector-dotnet/#comment-66546 Thu, 22 May 2025 11:34:13 +0000 https://drafts.code-maze.com/?p=84938#comment-66546 Hi,

what will happen if backend doesn’t support oltp format?

]]>
Comment on Genearate PDFs With iText in C#/.NET (Formerly iTextSharp) by Heraclides https://code-maze.com/csharp-pdf-manipulation-with-itext/#comment-66486 Wed, 21 May 2025 13:59:25 +0000 https://code-maze.com/?p=92234#comment-66486 document.Add(CreateNormalParagraph(LoremIpsum(100)));
private static AreaBreak CreateNormalParagraph(string v)
{
throw new NotImplementedException();
}

Es posible que me ayuden con este error que lamentablemente no lo puedo solucionar
mil gracias por su ayuda.

Estoy usando la versión itext7 9.2 (2025-05-21)

[email protected]

perdon me olvide de poner el error gracias.

]]>
Comment on Shell Sort in C# by gggustafson https://code-maze.com/shell-sort-csharp/#comment-64712 Tue, 22 Apr 2025 16:05:05 +0000 https://drafts.code-maze.com/?p=71922#comment-64712 In How to Implement Shell Sort in C#?, the parameters size and arrayName are not needed. array.Length is the size and arrayName is not used.

]]>
Comment on Generate QR Codes With QRCoder in .NET by Vibs https://code-maze.com/aspnetcore-generate-qr-codes-with-qrcoder/#comment-62125 Sun, 09 Mar 2025 14:36:20 +0000 https://code-maze.com/?p=116655#comment-62125 Best content available online for .NET Core enthusiasts. Thanks a ton for such wonderful articles that you create for real life scenarios.

]]>