Logging is an integral part of any application. There are many options and not all of them good. Log4NET is a great framework for both simple and extremely complex scenarios, allowing you to choose the log format, the storage medium, and custom rules for messages and levels. Creating new message handlers is an easy process and Log4NET can be configured …
ASP.NET MVC Bundling and Minification for Beginners
Starting in version 4, ASP.NET MVC has been capable of bundling script and style files and minifying them to help make sites faster. Bundling and minification is not a black box. Its easy to see what is going on using only your browser. The image below is a default MVC application that has not been bundled. Without Bundling and …
The Difference Between Stack and Heap for Variables in the .NET Framework
The differences between variables stored on the stack versus variables stored on the heap when using the .NET Framework are, on the surface, small. However, if you understand what is happening behind the scenes, they are actually two different worlds. It is required that you understand a couple of things about variables before understanding where they are stored at. First, …
Two Unlikely Great Books to Read
I am a Kindle Unlimited subscriber. This opens up an entire world of books that I likely would not read otherwise in business, self-development, and fantasy (which I love) but, let’s be honest. Many of the books included in the Unlimited library just aren’t that great. I can’t count the number of books that I returned in disgust because the …
Entity Framework for Beginners Part 4 – Extras
This post is part 4 of 4 covering Entity Framework Code-First for Beginners. Part 1 – Setting Up Entity Framework Code-First for Beginners Part 2 – Migrations in Entity Framework Code-First Part 3 – DbContext Part 4 – Entity Framework Code-First Extras To this point, we have covered the basics of Entity Framework. In this post, I will go over …
Entity Framework for Beginners Part 3 – DbContext
This post is part 3 of 4 covering Entity Framework Code-First for Beginners. Part 1 – Setting Up Entity Framework Code-First for Beginners Part 2 – Migrations in Entity Framework Code-First Part 3 – DbContext Part 4 – Entity Framework Code-First Extras The DbContext is Entity Framework’s keystone. It is where all the action takes place. In this post, I …
Entity Framework for Beginners Part 2 – Migrations
This post is part 2 of 4 covering Entity Framework Code-First for Beginners. Part 1 – Setting Up Entity Framework Code-First for Beginners Part 2 – Migrations in Entity Framework Code-First Part 3 – DbContext Part 4 – Entity Framework Code-First Extras In this post, I will take a close look at Entity Framework migrations. Migrations are a way to …