Mastering ASP.NET Core 2.0 – Discount Offer
My book Mastering ASP.NET Core 2.0 is now available from Packt Publishing. If you are interested in buying the ebook, you can use this discount code, which will give you a 40%...
View ArticleInterception in Entity Framework Core
Right now, Entity Framework Core still does not have all of the features provided by pre-Core versions, I even wrote a post about this. One of this features is the ability to intercept queries,...
View ArticleSoft Deletes with Entity Framework Core 2 - Part 1
Entity Framework Core 2, already covered here, includes a cool feature called global filters. By leveraging global filters, we can apply restrictions automatically to entities, either loaded directly...
View ArticleSoft Deletes with Entity Framework Core 2 – Part 2
My previous post explained how to setup soft deletes for queries automatically. This time, I’m going to talk about the other part: actually replacing a delete for an update that sets the is deleted...
View ArticleEntity Framework Core Pitfalls: No TransactionScope Support
Entity Framework Core, as of version 2.0, does not support enlisting in ambient transactions, like those provided by TransactionScope. It is being tracked by issue #9561. This is by design and is...
View Article2017 in Retrospective, 2018 in Perspective
site2017 was a difficult year for me, for personal reasons. So I didn’t blog that much, to be honest.I was renewed again as Microsoft MVP, an excellent way to start the year! Hooray! In 2017 my second...
View ArticleEntity Framework Core Succinctly Released
My latest (and fifth) ebook for Syncfusion’s Succinctly collection is out: Entity Framework Core Succinctly! It covers Entity Framework Core 2.0 and you can download it for free – need to register...
View ArticleASP.NET Core Pitfalls – Redirect to Action Keeps Route Parameters
When you redirect after a POST – following the famous Post-Redirect-Get pattern – but your previous view was constructed using a route parameter, then it will be sent to the redirect action as well.For...
View ArticleASP.NET Core Pitfalls – Session Storage
Previous versions of ASP.NET featured several ways to persist sessions:InProc: sessions would be stored on the server’s process memorySQL Server: sessions would be serialized and stored in a SQL Server...
View ArticleIntroducing Interpose.Core
I’m writing this from the 2018 MVP Global Summit!Some of you may remember a series of posts I wrote about AOP and code interception in .NET. In them I built an AOP framework from scratch that could do...
View ArticleInterpose.Core Updates
I’m writing this from the 2018 MVP Global Summit!Some of you may have read my previous post on Interpose.Core. I’ve made a few modifications since:Added caching for type generators, meaning, you won’t...
View ArticleInterpose.Core Changes
I’m writing this from the 2018 MVP Global Summit!Got my first pull request for Interpose.Core: it came from @x2764tech and it was suggested that Interpose should target .NET Standard. For some reason,...
View ArticleStackify Posts Index
As some of you may remember, last year I started writing occasionally a few posts for Stackify (@Stackify). In this page I will try to keep this list updated.How to Call WCF Services and Create SOAP...
View ArticleSuccinctly Books Index
This page lists all the books I wrote or reviewed for Syncfusion’s Succinctly series.Books I wrote:Entity Framework Code First Succinctly (July 2014)NHibernate Succinctly (August 2014)Microsoft Unity...
View ArticleMy Open Source Projects
Here’s a list (which I’ll try to keep updated) of my publicly available open source projects.Postal.NET: Postal.NET is a .NET Standard library for writing decoupled applications.Interpose.Core:...
View ArticleMVP Award Renewed
This July 1st I was again renewed as MVP for Visual Studio and Development Technologies for 2018-2019! That’s 4 in a row, I hope more will come!Feels great and I’d like to thank Cristina Gonzalez...
View ArticleC# Special Method Names
IntroductionYou may not have realized that some of the patterns that you’ve been using for ages in your C# programs are based on conventions, rather than on a specific API. What I mean by this is, some...
View ArticlePerformance in .NET – Part 1
Updated: thanks, Paulo Morgado!IntroductionAlong the years I wrote a couple of posts about performance in the .NET world. Some were more tied to specific frameworks, such as NHibernate or Entity...
View ArticlePerformance in .NET – Part 2
IntroductionThis is the second in a series of posts about performance in the .NET ecosystem. On the first post, that you can find here, I talked about object instantiation. This time, it’s object...
View ArticleDynamically Loading Middleware in ASP.NET Core
IntroductionThe concept of middleware has been around since ASP.NET MVC (pre-Core) and OWIN. Essentially, a middleware component lives in a pipeline and handles requests and acts as a chain of...
View Article