Archives
-
Visual Studio Tips 3
Updated: see the fourth post here.
-
Persisting SignalR Connections Across Page Reloads
I recently had the need to keep a SignalR connection even if the page would reload. As far as I know, this cannot be done out of the box, either with hubs or persistent connections. I looked it up, but could find no solid solution, so here is my solution!
-
Unity, Part 11: Integrating With Azure Application Insights
Another one for the Unity series.
-
Correlation 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 frameworks, such as SharePoint and NServiceBus, use this concept.
-
Elastic 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, it’s a class that allows adding members to its instances dynamically; this is a widely known pattern in scripting languages such as JavaScript, but not so easy to implement in .NET.
-
Data 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 was specifically about DocumentDB, one of Microsoft’s offers in the field of NoSQL.
-
Type 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 the Bin folder or a probed path – you’re likely to succeed. But, what if that isn’t the case? Well, we can follow these steps:
-
Custom .NET Data Provider
-
Ongoing Series of Posts
So, for your – and my – information, these are the post series currently going on in my blog:
-
Lesser-Known NHibernate Features: Executable HQL
What happens when you need to bulk change a lot of records on the database? The unwary novice might be tempted to load data from the database into class instances, change them and then either rely on change tracking to eventually make the changes persistent or even worse, explicitly do an update on every possibly changed entity. The non-novice readers should now rolling their eyes.var records = session.CreateQuery("update Person p set p.Email = p.Email + p.Username + '@somedomain.com' where p.Email is null").ExecuteUpdate();
-
Entity 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:
-
Java 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.