NHibernate Fluent Validation
Some time ago, I wrote a post on fluent validation for Entity Framework Code First. I think it is a cool concept, and I decided to bring it into NHibernate!In a nutshell, what I want to be able to...
View ArticleCustom NHibernate Criteria Projections
I recently had the need to investigate a way to do some complicated projections with Criteria queries and I was faced with what seems a common problem: being able to fully select the properties of the...
View ArticleNHibernate Pitfalls: Outer Joins of Unrelated Entities
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.NHibernate does not support outer (left, right, full) joins in most of its querying APIs, namely, Criteria,...
View ArticleNHibernate Connection Resiliency
Entity Framework 6 included a feature known as connection resiliency. Basically, what it says is, when EF is trying to connect to a database, it will try a number of times before giving up. After each...
View ArticleASP.NET Upload Panel
IntroductionI have been playing recently with HTML5, and one thing that I got to understand really well was the new upload mechanisms available. Specifically, I wanted to understand how SkyOneDrive,...
View ArticleJavaScript Events
IntroductionA lot has changed with regard to events and event handling since the old days of HTML. Let’s have a brief look at it.Old DaysIn the old days, it was common to add event listeners in one of...
View ArticleNHibernate Pitfalls: Aggregating Non-Nullable Numerical Values Without Records
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.When you are performing a LINQ query that aggregates non-nullable numeric values – Sum, Average, for example...
View ArticleSpeech Synthesis with ASP.NET and HTML5
The .NET framework includes the SpeechSynthesizer class which can be used to access the Windows speech synthesis engine. The problem with web applications is, of course, this class runs on the server....
View ArticleASP.NET Callback Panel
Continuing with my quest for reusable, no dependencies, Web Forms AJAX controls, this time I wanted a replacement for the venerable UpdatePanel control. Specifically, I wanted to address the following...
View ArticleMaking Better Use of the NHibernate HiLo Generator
IntroductionNHibernate’s HiLo (High-Low) id generation algorithm is one of the most commonly used, and for good reasons:It is database-independent, that is, does not rely on any database-specific...
View ArticleTaking Picture Snapshots with ASP.NET and HTML5
This is another post on HTML5 and ASP.NET integration. HTML5 brought along with it a number of great JavaScript APIs; one of them is getUserMedia, which is W3C standard and you can get a good...
View ArticleVideo Streaming with ASP.NET SignalR and HTML5
I have already talked about SignalR in this blog. I think it is one of the most interesting technologies that Microsoft put out recently, not because it is something substantially new – AJAX, long...
View ArticleUnity – Part 6: Registration by Convention
IntroductionOK, sixth post on this series, long overdue. You will find the fifth (Injecting Values) here, the fourth (Extensions) here, the third (Aspect-Oriented Programming) here, the second...
View ArticleEntity Framework Pitfalls – Deleting Orphans
The idea for this post came from Jimmy Bogard, of AutoMapper fame.Entity Framework does not really have the notion of parents and children, only of relations. Some of these relations can be mandatory,...
View ArticleGetting the Topmost Hierarchical Parent in T-SQL
IntroductionIt is normal in databases to have hierarchical tables, that is, tables that are related with themselves, forming a parent-child relation. For example, consider this:The parent_id column...
View ArticleNHibernate Pitfalls: Fetch and Paging
This is part of a series of posts about NHibernate Pitfalls. See the entire collection here.NHibernate allows you to force loading additional references (many to one, one to one) or collections (one to...
View ArticleTaking Picture Snapshots with ASP.NET and HTML5
This is another post on HTML5 and ASP.NET integration. HTML5 brought along with it a number of great JavaScript APIs; one of them is getUserMedia, which is W3C standard and you can get a good...
View ArticleVideo Streaming with ASP.NET SignalR and HTML5
I have already talked about SignalR in this blog. I think it is one of the most interesting technologies that Microsoft put out recently, not because it is something substantially new – AJAX, long...
View ArticleUnity – Part 6: Registration by Convention
IntroductionOK, sixth post on this series, long overdue. You will find the fifth (Injecting Values) here, the fourth (Extensions) here, the third (Aspect-Oriented Programming) here, the second...
View ArticleUnity – Part 6: Registration by Convention
IntroductionOK, sixth post on this series, long overdue. You will find the fifth (Injecting Values) here, the fourth (Extensions) here, the third (Aspect-Oriented Programming) here, the second...
View Article