5 free online games you can play with your team

Most developers love playing games and some of them still enjoy it after work. Some companies organize regular social events and get-togethers to have fun. However, when pandemic started we mostly worked remotely and organizing a social event was simply impossible. In my company we started something called a fun hour, where we regularly play… Continue reading 5 free online games you can play with your team

Static refactoring with Visual Studio regular expressions

Regular expressions are a multi-tool in every developer toolbox. One of the places they can be useful is Quick Find and Quick Replace dialogs in Visual Studio. In this post, I’m going to show you how you can use the power of regular expressions in smart refactoring. Changing an enum to string Let’s assume I’d… Continue reading Static refactoring with Visual Studio regular expressions

Bulk copy with Entity Framework Core 5

MS SQL Server provides functionality to quickly insert large amounts of data. It is called Bulk Copy and is performed by SqlBulkCopy class. I already compared how fast is it compared to EF Core 5 in this post: https://www.michalbialecki.com/2020/05/03/entity-framework-core-5-vs-sqlbulkcopy-2/, but this time I want to check something different – linq2db library. What is Linq2db Let’s… Continue reading Bulk copy with Entity Framework Core 5

Entity Framework Core – is it fast?

Entity Framework Core is a great ORM, that recently reached version 5. Is it fast? Is it faster than it’s predecessor, Entity Framework 6, which still offers slightly more functionality? Let’s check that out. This comparison was made by Chad Golden, comparing the performance of adding, updating, and deleting 1000 entities. The exact data and… Continue reading Entity Framework Core – is it fast?

Useful SQL statements when writing EF Core 5 migrations

Entity Framework Core 5 is a great ORM and I love how efficient and concise it is. With the migrations mechanism enabled, you can generate the next migration based on changes applied to your model. This is so cool, but when it comes to other database objects, you are on your own. I mean –… Continue reading Useful SQL statements when writing EF Core 5 migrations

How to configure relationships in Entity Framework Core 5

Relationships in a database context define how two entities relate to each other. Entity Framework Core really shines in supporting relationships. It offers a convention-based configuration, that will configure relationships based on the model provided. For more advanced cases we can use robust Fluent API capabilities, that offer greater flexibility. I must admit that working… Continue reading How to configure relationships in Entity Framework Core 5