Open in app

Sign in

Write

Sign in

Mastodon
João Simões
João Simões

324 Followers

Home

About

Pinned

Understanding Flag Enums in C#

Efficiently representing combination of choices — Enumeration types, also known as enum types, are widely used by C# developers to improve code readability and maintainability, by offering a standardized way to represent a set of related numeric constants. Good examples are days of the week, seasons, or a predefined range of colors. In this article I’m…

Programming

6 min read

Understanding Flag Enums in C#
Understanding Flag Enums in C#
Programming

6 min read


Published in

The Startup

·Pinned

Mediator Pattern in ASP.NET Core Applications

Send commands, fetch queries, and broadcast events using a mediator pattern for CQRS+ES — For the last few years, Command Query Responsibility Segregation (CQRS) and Event Sourcing (ES) emerged as patterns that can help implement large scale systems, with some risky complexity, by having different models to read or mutate data while also using events as a single source of truth. Since there are…

Aspnetcore

7 min read

Mediator Pattern in ASP.NET Core Applications
Mediator Pattern in ASP.NET Core Applications
Aspnetcore

7 min read


Nov 9

.NET — ToList vs ToArray

Performance comparison between ToList and ToArray — Ever since Microsoft introduced Language Integrated Query to the .NET framework (also known as LINQ) developers have been using it extensively to work with collections. From a simple filter, to an aggregation, to a transformation, LINQ is the technology of choice to keep code clean and readable. …

Csharp

9 min read

.NET — ToList vs ToArray
.NET — ToList vs ToArray
Csharp

9 min read


Nov 8

.NET 8 — FrozenDictionary performance

Comparison between Frozen, Immutable and Dictionary — Microsoft’s upcoming release of .NET 8 will introduce a lot of new features that will certainly be welcomed by the developer community, making it an even stronger framework for application development. One of those features is the namespace System.Collections.Frozen that introduces two new collections: FrozenDictionary and FrozenSet. These new types…

Dotnet

7 min read

.NET 8 — FrozenDictionary performance
.NET 8 — FrozenDictionary performance
Dotnet

7 min read


Published in

Geek Culture

·Aug 13, 2022

Immutability and Entity Framework Core

Using C# records and Entity Framework Core to implement immutable data access layers — Nowadays, when implementing a .NET application that works directly with a database (relational or not), most developers will chose Entity Framework Core to abstract their data layer and work directly with entity classes. It has become an integral part of the .NET ecosystem, just like ASP.NET, and it is extremely…

Database

11 min read

Immutability and Entity Framework Core
Immutability and Entity Framework Core
Database

11 min read


Published in

Geek Culture

·Mar 9, 2021

Integrating Dapper with Entity Framework Core

Overcoming limitations or performance bottlenecks by executing raw SQL with Dapper — Nowadays it is extremely rare to implement an application without using any sort of library for Object-Relational Mapping (ORM) to reduce development time by removing the need to implement a lot of boilerplate code to access a database. In the .NET …

Programming

9 min read

Integrating Dapper with Entity Framework Core
Integrating Dapper with Entity Framework Core
Programming

9 min read


Published in

Geek Culture

·Nov 25, 2020

Auditing with Mediator Pipelines in ASP.NET Core

Audit commands and store events with transversal behavior — When implementing a web application, it can be a good idea to enforce some kind of auditing to all of your client interactions, either to track their behavior over time, to ensure any security breach will be properly logged, or just to help analyze system bugs. Previously we talked about…

Programming

7 min read

Auditing with Mediator Pipelines in ASP.NET Core
Auditing with Mediator Pipelines in ASP.NET Core
Programming

7 min read


Published in

The Startup

·Nov 7, 2020

Transaction Management With Mediator Pipelines in ASP.NET Core

Manage Entity Framework Core transactions when handling commands — When implementing a simplified CQRS service, which usually has a single database but still separates commands from queries, the mediator pipeline can be used to manage transactions when processing commands, ensuring changes will be implicitly committed unless an exception is thrown. Implementing a pipeline for transactions has some key advantages…

Programming

5 min read

Transaction Management With Mediator Pipelines in ASP.NET Core
Transaction Management With Mediator Pipelines in ASP.NET Core
Programming

5 min read


Published in

The Startup

·Nov 4, 2020

Validation with Mediator Pipelines in ASP.NET Core Applications

Validate commands, events or queries with transversal behavior — When implementing web applications that manipulate information, there is always the need to validate data sent by the clients, ensuring business rules are properly implemented. Previously I talked about the implementation of Command Query Responsibility Segregation (CQRS) and Event Sourcing (ES) using a mediator pattern and how to support transversal…

Programming

4 min read

Validation With Mediator Pipelines in ASP.NET Core Applications
Validation With Mediator Pipelines in ASP.NET Core Applications
Programming

4 min read


Published in

The Startup

·Nov 2, 2020

Using Mediator Pipelines in ASP.NET Core Applications

Intercept commands, queries and events to apply transversal behavior — In my previous article I explained how you could implement Command Query Responsibility Segregation (CQRS) and Event Sourcing (ES) patterns using a mediator instance from SimpleSoft.Mediator in ASP.NET Core applications. This time I’m going to explain how to intercept commands, queries and events, making it possible to apply transversal behavior…

Programming

5 min read

Using Mediator Pipelines in ASP.NET Core Applications
Using Mediator Pipelines in ASP.NET Core Applications
Programming

5 min read

João Simões

João Simões

324 Followers

Solutions Architect trying to solve world “problems”!

Following
  • Alexandra Grosu

    Alexandra Grosu

  • Ethan Siegel

    Ethan Siegel

  • Ben Le Fort

    Ben Le Fort

  • Netflix Technology Blog

    Netflix Technology Blog

  • Tanmay Deshpande

    Tanmay Deshpande

See all (119)

Help

Status

About

Careers

Blog

Privacy

Terms

Text to speech

Teams