If you need to delete all documents from a container in Cosmos DB from the portal you can set the … Continue reading Bulk delete items from Azure Cosmos DB from the portal
Raw SQL queries for unmapped types available from Entity Framework 8 Preview 1
In Entity Framework currently, SQL queries must return a type in the model (known to EF) or a scalar type. … Continue reading Raw SQL queries for unmapped types available from Entity Framework 8 Preview 1
Entity Framework 8 with SQL Server provider will support DateOnly and TimeOnly types
Version 5.1 of Microsoft.Data.SqlClient was released last week (19th Jan 2023) and included support for DateOnly and TimeOnly types which … Continue reading Entity Framework 8 with SQL Server provider will support DateOnly and TimeOnly types
.NET Framework 4.8 v .NET 7 reflection performance benchmarks
Just for fun I ran a BenchmarkDotNet comparison between .NET Framework 4.8 and .NET 7 for some reflection related functionality … Continue reading .NET Framework 4.8 v .NET 7 reflection performance benchmarks
Should I use the Entity Framework in-memory DB for unit tests?
Using the Entity Framework in-memory DB for unit tests? It might not be giving you the coverage you think it … Continue reading Should I use the Entity Framework in-memory DB for unit tests?
Transitive packages will soon be visible in NuGet Package Manager in Visual Studio
Transitive packages will soon be visible in Visual Studio from the NuGet package explorer. These are packages installed into your … Continue reading Transitive packages will soon be visible in NuGet Package Manager in Visual Studio
Poll Results : Do you use the repository pattern over Entity Framework?
In .NET land whether to use the repository pattern over Entity Framework is a highly debated topic. I wanted to … Continue reading Poll Results : Do you use the repository pattern over Entity Framework?
Visual Studio finally gets built in spell checker
Visual Studio 2022 17.5 Preview 3 has just been released, one of the cool features to be included is a … Continue reading Visual Studio finally gets built in spell checker
How to spilt a collection into sub collections of a certain size in .NET 6+ using the LINQ Chunk method
FYI, in .NET 6+ the Chunk LINQ method is useful for splitting up sequences into sub sequences of a certain … Continue reading How to spilt a collection into sub collections of a certain size in .NET 6+ using the LINQ Chunk method
How to get the Entity Framework daily builds from NuGet
If you want the absolute latest EF features and bug fixes which have been committed to the main branch check … Continue reading How to get the Entity Framework daily builds from NuGet
Entity Framework 7 translates GetType() in where clause
As of version 7, Entity Framework will translate the GetType() method in LINQ where clauses. This means we can more … Continue reading Entity Framework 7 translates GetType() in where clause
Is software architecture over-engineering on the developer maturity journey?
Is over-engineering on the developer maturity journey? Do you need to have written lots of over complicated apps to appreciate … Continue reading Is software architecture over-engineering on the developer maturity journey?
Generate a series of numbers in SQL Server 2022
There’s been lots of awesome T-SQL improvements in SQL Server 2022. One of which is the new GENERATE_SERIES relational operator … Continue reading Generate a series of numbers in SQL Server 2022
Keeping interfaces just used for mocking in the same file as the implementation
When creating an interface purely for the ability to mock I do like to keep both the class and interface … Continue reading Keeping interfaces just used for mocking in the same file as the implementation
.NET 7 increment operator ++ and +1 compiling differently
Since they are equivalent ++ and +1 should compile to the same code, right? As we can see below, this … Continue reading .NET 7 increment operator ++ and +1 compiling differently
Three tips to help control unnecessary complexity in our software architecture
I post about it a lot, but unnecessary complexity really is a silent productivity killer in our development lifecycles 👿 … Continue reading Three tips to help control unnecessary complexity in our software architecture
Benchmark custom code workarounds against each new version of .NET as the framework gets faster all the time
Always revisit and benchmark your custom code workarounds with each version of .NET. The .NET framework and the JIT compiler gets faster … Continue reading Benchmark custom code workarounds against each new version of .NET as the framework gets faster all the time
Poll Results : What e2e testing tool do you prefer?
What tool are you using for e2e automated testing in your team and why? I ran the below LinkedIn poll … Continue reading Poll Results : What e2e testing tool do you prefer?
Visual Studio now supports multiple GIT repositories
Did you know that Visual Studio (as of version 2022 17.4) supports using multiple GIT repositories? No more opening multiple Visual … Continue reading Visual Studio now supports multiple GIT repositories
Use new StringSyntax Attribute in .NET 7 to give semantic meaning to strings
FYI… the StringSyntax Attribute is new in .NET 7 and allows us to tell Visual Studio what kind of string … Continue reading Use new StringSyntax Attribute in .NET 7 to give semantic meaning to strings
Create plain GUID in Visual Studio via PowerShell
I use GUIDs for ad hoc stuff like passing into postman requests or when inserting dummy data into DBs for … Continue reading Create plain GUID in Visual Studio via PowerShell
Compare local files in Visual Studio with File Differ extension
It’s likely to be it built in soon but for the moment Mads Kristensen has created the File Differ extension … Continue reading Compare local files in Visual Studio with File Differ extension
.NET ChatGPT example – API controller using injected repository and DTO mapped to model using explicit operator
I love ChatGPT and previously posted an example of some ChatGPT generated code to create a controller, with DTO and … Continue reading .NET ChatGPT example – API controller using injected repository and DTO mapped to model using explicit operator
ChatGPT generated .NET CRUD controller with DTO mapped to domain model using AutoMapper
It’s not perfect but I’m absolutely loving ChatGPT. ChatGPT-3 (current version as of writing) is trained on 175 billion parameters, … Continue reading ChatGPT generated .NET CRUD controller with DTO mapped to domain model using AutoMapper
String + versus StringBuilder benchmarks for 50K one char concatenations in .NET 7
I’m sure there’s still some junior .NET devs using + to concatenate large (usually an unknown) amounts of strings? Look … Continue reading String + versus StringBuilder benchmarks for 50K one char concatenations in .NET 7