Profiling SQL Server in .NET
The main tool for profiling SQL Server is, of course, SQL Server Profiler. You can, however, achieve more or less the same results using .NET, I'll show you how.First, you need to have assemblies...
View ArticleSkill Up - Learn More to Earn More
PACKT Publishing made freely available its Skillup Reports: basically, it is a set of comprehensive reports for different technical areas - web development, app development, data development, sys admin...
View ArticleInterception in .NET – Part 1: Introduction
Interception is the capability by which developers can inject behavior dynamically into existing methods or properties, before, after or instead of their execution. A common paradigm is Aspect-Oriented...
View ArticleInterception in .NET – Part 2: Dynamic Interception
This is part two of a series of posts on interception in .NET. You can find the first part here.Interception TargetsThere are two possible targets for interception:Types, such as classes or...
View ArticleBlend for Visual Studio 2012 by Example Review
IntroductionI was recently asked by Packt Publishing to review another of their books. This time it was Blend for Visual Studio 2012 by Example, a book by Abhishek Shukla (@abbeyshukla), apparently,...
View ArticleLocal Machine Interprocess Communication with .NET
IntroductionTL; DR; A description of several techniques to pass messages between processes running on the same machine.At times, there is the need for multiple processes running on the same machine to...
View ArticleBlend for Visual Studio 2012 by Example: Beginner’s Guide Discount Offer
I recently published a review of Pack Publishing’s new book, Blend for Visual Studio 2012 by Example - Beginner’s Guide. Well, guess what, Pack is offering a 50% offdiscount if you buy it between 17th...
View ArticleASP.NET Multitenant Applications Succinctly Released
My fourth title for the Succinctly series has just been released: ASP.NET Multitenant Applications Succinctly!This time, it’s about writing multitenant applications with ASP.NET. It was fun to write,...
View ArticleEntity Framework Pitfalls: Lazy Loading and Proxy Creation
There are two properties that control the ability to lazy load navigation properties:LazyLoadingEnabled: controls whether navigation properties marked as virtual will be lazy loaded, that is, loaded on...
View ArticleEntity Framework Pitfalls: Using Stored Procedures for Basic Operations
Entity Framework, as of version 6, allows the usage of stored procedures for its CUD (Create, Update and Delete) operations. We just need to override the DbContext’s OnModelCreating method and call...
View ArticleJava Flaws
One thing I didn’t talk about in my Java vs C# series (by the way, more to come soon) was some things that I think Java got wrong.One of these things has to do with serialization. Java offers the...
View ArticleEntity Framework Pitfalls: DbConfiguration Classes Are Automatically Loaded
Entity Framework, since version 6, allows us to specify certain aspects of its configuration by code through a DbConfiguration-derived class. This configuration can be specified in one of three ways:A...
View ArticleLesser-Known NHibernate Features: Executable HQL
var records = session.CreateQuery("update Person p set p.Email = p.Email + p.Username + '@somedomain.com' where p.Email is null").ExecuteUpdate();What happens when you need to bulk change a lot of...
View ArticleOngoing Series of Posts
So, for your – and my – information, these are the post series currently going on in my blog:NHibernate Pitfalls: a big list of NH pitfalls; not all are negative, but perhaps unexpected;Lesser-Known...
View ArticleCustom .NET Data Provider
The .NET framework offers a provider model for ADO.NET. It is possible to register ADO.NET providers that can be used to dynamically create connections and other kinds of objects:var myProvider =...
View ArticleType Converter to Type
What happens when you need to pass a type as a string? Well, if the string is an assembly qualified type name, and if the assembly is either in Global Assembly Cache or in a known location – such as...
View ArticleData Platform Airlift 2015
Today I had the great pleasure to attend the Data Platform Airlift 2015 event, at Microsoft Portugal! Moreover, I presented a session together with Luís Calado on what’s new in the Azure world! My part...
View ArticleElastic Object Implementation in .NET
I think it was Anoop Madhusudanan (aka, amazedsaint) who first coined the term “Elastic Object”. He even built an implementation, which you can find on GitHub and NuGet, which is very nice. Basically,...
View ArticleCorrelation Id Scope
A correlation id is an enterprise messaging pattern that helps bind together several messages. If they have the same correlation id, then they must be somehow related. Several servers and service bus...
View ArticleUnity, Part 11: Integrating With Azure Application Insights
Another one for the Unity series.Lately I’ve been playing with Azure Application Insights. Nice thing, even if – at least, for the moment – not as powerful as some of its contesters. A thing that came...
View Article