Transactional Savepoints in EF Core: Rollback Just What You Need!
We’ve all been there—you’re halfway through a multi-step transaction, and boom! 💥 Something fails. You don’t want to roll back everything, just the part that went wrong.
That’s where Transactional Savepoints come in!
Savepoints let you partially roll back transactions, keeping the good stuff while undoing just the problematic parts. If you’ve ever wished for a “Ctrl + Z” in database operations, this is it.
Continue Reading
Tapping into Database Views with EF Core: Reverse Engineering Made Easy
Not all database tables are created equal! Sometimes, you don’t need direct access to raw data—you need a refined, read-only version that makes querying easier. That’s where database views come in!
Continue Reading
Mapping the World with EF Core: Working with Spatial Data
Have you ever needed to store coordinates, track locations, or perform distance calculations in your database? Whether you’re building a ride-sharing app, a location-based service, or an interactive map, working with spatial data is essential.
Luckily, EF Core supports spatial data types, allowing you to store, query, and manipulate geographic data seamlessly. No more treating latitude and longitude as simple numbers—let’s bring real GIS (Geographic Information System) power to your EF Core apps!
Continue Reading
Unlocking EF Core Performance: How to Track Queries with Event Counters
If you’ve ever wondered why your EF Core queries feel sluggish or why your database is working overtime, you’re not alone. Performance issues can creep in quietly, and before you know it, your app is struggling to keep up.
Wouldn’t it be great if EF Core had built-in performance tracking so you could monitor database activity in real time? Good news—it does!
Continue Reading
Tracking Every Change: Using SaveChanges Interception for EF Core Auditing
Ever wonder who changed what and when in your database? Or maybe you’ve had that “uh-oh” moment where data was updated, but no one knows how?
Good news: EF Core has a built-in way to track changes—without modifying every query manually! SaveChanges Interception lets you hook into EF Core’s SaveChanges() pipeline and log inserts, updates, and deletes automatically.
Continue Reading
Batching Like a Boss: Using IDbContextFactory for High-Performance EF Core Updates
I love receiving feedback on my blog posts! After sharing “Batching Updates and Inserts: Making EF Core Work Smarter, Not Harder,” I received some great comments, especially from MaxiTB on Mastodon, which I wanted to share. Batch operations—whether inserting or updating multiple records—can quickly lead to performance issues, particularly when DbContext is misused. However, with the helpful support of IDbContextFactory …
Continue Reading
Compiled Models: The Fast Lane for EF Core Performance
Let’s talk about startup time. Not the Silicon Valley kind, but the time it takes for your EF Core app to boot up, stretch its legs, and actually start handling requests. If your app is dragging its feet like a teenager on a Monday morning, you need a secret weapon: Compiled Models.
Continue Reading
Rust’s Superpower: Speed Meets Smarts
Regarding speed and efficiency, Rust doesn’t just run the race—it leaves other languages eating its dust. Built for blazing performance and low-level control, Rust’s unique features make it a standout choice for projects where every millisecond and megabyte count. Let’s dive into why Rust is the Usain Bolt of programming languages and how it stacks up in the performance department.
Continue Reading
Level Up Your Skills: Learning Rust as a C# Dev
Switching from C# to Rust can feel like stepping into a new world. Suddenly, you’re dealing with ownership, borrowing, and a compiler that’s as strict as your high school math teacher. But don’t worry—you’ve got this. With the right mindset, some practical tips, and a few helpful resources, you’ll go from a Rust rookie to a Rustacean in no time. Let’s dive in!
Continue Reading
Building with .NET and Rust: A Tale of Two Ecosystems
Programming ecosystems are like bustling cities. .NET is the metropolis with skyscrapers and a thriving business district, while Rust is the up-and-coming tech hub—small but mighty, with startups everywhere. Both offer incredible opportunities, but their vibes are very different. So, let’s grab a coffee and tour these two dynamic ecosystems!
Continue Reading