
Verifying myself: I am pocki_c on Keybase.io. --WA6uQSeHoy2YxmeXwpf7GgfWBXV202n-rl / keybase.io/pocki_c/sigs/--WA…
10
Christoph Pock retweeted
We are excited to announce that the Bicep Microsoft Graph extension is fully GA as of today 💪🎉
HUGE thanks to the MS Graph team for making this happen!
Read more about it here: aka.ms/MSGraphGA
Christoph Pock retweeted
𝗧𝗼𝗽 𝟭𝟱 𝗠𝗶𝘀𝘁𝗮𝗸𝗲𝘀 .𝗡𝗘𝗧 𝗗𝗲𝘃𝗲𝗹𝗼𝗽𝗲𝗿𝘀 𝗠𝗮𝗸𝗲
Learn how to solve them 👇
1. Not Using Dependency Injection
2. Not Using Validation
3. Not Using Logging and OpenTelemetry
4. Reinventing the Wheel (Not Using Libraries)
5. Ignoring EF Core
6. Not Disposing Resources
7. Ignoring async/await
8. Not Writing Tests
9. Using Mapping Libraries
10. Using Exceptions for Control Flow
11. Organizing Code by Technology Folders
12. Over-Engineering Solutions
13. Using Only Traditional N-Layered Architecture
14. Ignoring Minimal APIs
15. Ignoring Clean And Good Code
Have you made any of these mistakes? Share your experience in the comments below 👇
♻️ Repost to help your network learn about these mistakes
➕ Follow me ( @AntonMartyniuk ) for more
#dotnet
Christoph Pock retweeted
𝗜𝘁'𝘀 𝗮 𝗹𝗶𝗲 𝘁𝗵𝗮𝘁 𝗗𝗮𝗽𝗽𝗲𝗿 𝗶𝘀 𝟱𝟬% 𝗳𝗮𝘀𝘁𝗲𝗿 𝘁𝗵𝗮𝗻 𝗘𝗙 𝗖𝗼𝗿𝗲
I have run the benchmarks, the results are surprising 👇
You've heard the claims that Dapper 30%, 50%, 2x faster than EF Core, right?
I've seen it repeated everywhere.
But when I actually ran real-world benchmarks in .NET 8:
"Get top 5 users who made the most comments in the last 7 days on posts in the ".NET" category."
▶️ The results were surprising:
Dapper: 2.07 ms
EF Core: 2.43 ms
(See screenshot for details)
That's a difference of just 0.36 ms or 𝟭𝟰%.
Sure, Dapper allocates less memory too — but for most applications, the difference is tiny.
𝗪𝗵𝗮𝘁 𝗱𝗼𝗲𝘀 𝘁𝗵𝗶𝘀 𝗺𝗲𝗮𝗻?
↳ For 80% of projects, this performance gap simply doesn't matter.
↪️ That's why EF Core is the default choice in my projects.
Here are 12 reasons to pick EF Core over Dapper in real-world development:
1️⃣ EF Core tracks entity changes automatically, reducing manual insert, update and delete logic.
2️⃣ LINQ support enables compile-time checked queries in C# that transform to SQL.
3️⃣ Code-first migrations simplify database schema evolution.
4️⃣ Scaffold existing databases into models using reverse-engineering tools.
5️⃣ Navigation properties represent relationships without manual join queries.
6️⃣ Eager, lazy, and explicit loading strategies for flexible data fetching.
7️⃣ Global query filters for soft deletes and multitenancy support.
8️⃣ Value conversions map custom types to database columns easily.
9️⃣ Built-in retry policies ensure resilient SQL connections.
🔟 Interceptors enable auditing, logging, and custom behaviors.
1️⃣1️⃣ Write a query once that works on multiple database providers like SQL Server, PostgreSQL, MySQL, Oracle, SQLite, and more.
1️⃣2️⃣ Create and manage migrations for multiple databases with a single codebase.
📌 Note:
EF Core might not be the fastest in a microbenchmark, but its features can save hours (or even days) on real projects.
Choose the tool that keeps your code clean and your team productive, not just the one with the lowest ms.
Do you prefer EF Core or Dapper and why?
♻️ Repost to help your network learn about benchmarks of Dapper vs EF Core
➕ Follow me ( @AntonMartyniuk ) for more
Christoph Pock retweeted
ASP #dotnet custom instructions file for GitHub Copilot
Creating a copilot-instructions .md file allows us to give additional instructions to Copilot so it's responses can be specifically tailored for our repos.
Below is an image excerpt of the current copilot instructions file for the dotnet/aspnetcore repo which was merged less than an hour ago.
This feature is currently in preview and is currently supported for Copilot Chat in Visual Studio, VS Code and on the GitHub website. They are also supported for Copilot coding agent.
What do you think?
Christoph Pock retweeted
howToSolveBug redd.it/1gsigbx
Christoph Pock retweeted
stagesOfDrunkProgramming redd.it/1gu8hkd
Christoph Pock retweeted
| ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄ ̄|
| Don't Push To Production On Friday |
|_________________|
\ (•◡•) /
\ /
——
| |
|_ |_
@pocki_c spends 717% more time coding than tweeting
shiptalkers.dev/compare?gith…
3
Christoph Pock retweeted
StringSyntax attribute example 💡
The StringSyntax Attribute (.NET 7+) allows us to tell Visual Studio what kind of string (e.g. regex, datetime format, JSON etc.) we are working with in order to get correct intellisense and highlighting.
Have you used it yet?
#dotnet
Christoph Pock retweeted
The only password tip you need.
#WorldPasswordDay
Christoph Pock retweeted
Holy hannah! Disabling web search on the start menu makes it so much faster and effective. No lag at all anymore!
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Search
Make a new DWORD (32-bit) called: BingSearchEnabled
Ensure the value = 0
Christoph Pock retweeted
Microsoft has quietly launched an end to end Code Signing solution and it's free until June while in Preview techcommunity.microsoft.com/… Do you have an open source app or project and strugging with code signing? Give this a try
Christoph Pock retweeted
Turbocharge LINQPad with Windows Dev Drive! New LINQPad 8 beta automatically detects Windows Dev Drive and uses it for compilation output. linqpad.net/linqpad8.aspx#be…
learn.microsoft.com/en-us/wi…
youtube.com/watch?v=UW8yKWX8…
Christoph Pock retweeted
Not sure I am in love with where they have the confidence monitor at Build. Not sure I am in love with the fact that there appears to be a script for some. Amazed, however, that Scott never once looked up. I am starting to get the impression he has done this before. #MSBuild #MicrosoftBuild
Christoph Pock retweeted
Bring your data into the era of AI.
With Microsoft Fabric, you can unify experiences, reduce costs and deploy intelligence faster on a single, AI-powered platform. #MSBuild
Christoph Pock retweeted
We're announcing more than 50 updates for developers at #MSBuild, from bringing Bing to ChatGPT, to Windows Copilot, to a new Copilot Stack with common extensibility, Azure AI Studio, and Microsoft Fabric, a new data analytics platform. aka.ms/AAkv1b8
Christoph Pock retweeted
Looks like some 🐭 have gotten into PowerToys 0.70! Welcome Mouse without Borders and PowerToys Peek, a quick file preview system. With ❤️ and 100% open-source, top two #PowerToys requests, ✅. aka.ms/installPowerToys


























