Browse by Tags

All Tags » C# » .NET 3.5 (RSS)

NHibernate Session Management using FluentNhibernate and Castle Windsor by stefan.sedich

Time for my first post in a while, thought I would post on session management using Castle Windsor. I found this good post, http://blog.stevehorn.cc/2009/03/fluent-nhibernate-configured-via.html and I have basically converted it to use Castle for IoC...
Filed under: , , ,

Long time no post, here is something for fun, any object to a dictionary using an extension method! by stefan.sedich

Long time no post again :(, I will be getting back into it very soon if I can :). I was a little bored tonight so I thought I would share my extension method for converting an object to a dictionary, mainly used to converting an anon type to a dictionary...

Lazy Loaded One-To-One With NHibernate by stefan.sedich

UPDATE 20081114 The one-to-one solution I had posted turned out not to work for updates, :(, in the end I had to use a many-to-one map with a unique foreign key association to get this to work, the updated example is below. Sorry for my EPIC FAIL :)....
Filed under: , ,

Day Of Frustration by stefan.sedich

<Rant> I am in the process of playing around with the routing library for my current project, and I am playing around with using routing for web forms. I was running in IIS7 Classic mode (Don't ask why integrated works fine but I was seeing how...
Filed under: , , ,

Avoid Memory Leaks When Using Windsor And Not Releasing Objects by stefan.sedich

I just had this issue in a project I am working on (ASP.NET Webforms Application), yesterday I ran a load test and watched my memory climb rapidly and max out not long after. I am using Castle Windsor for my IOC and mostly transient instances are registered...
Filed under: , , , ,

Extension Method Competition by stefan.sedich

I plan on holding an extension method competition, basically the idea is that you submit your favourite most useful/elegant/sexy extension method and these will be judged by a selection of judges (to be picked) and there will also be some form of reward...

Enhanced Validation Control Which Provides Adding Multiple Validation Rules + NHibernate.Validator Support by stefan.sedich

Hello, I am toying with something at the moment which I thought I would briefly share and see if there is any interest, my current sample is very raw and I will not post any code. But the idea is that you would do something like this for validation: First...

Paging with NHibernate using a custom Extension method to make it 'easier' :)... by stefan.sedich

Update 20081022: I have updated the articles code to reflect the bug fixes kindly suggested by Paco :). I have now used this in my project and have had no issues with it yet. The fixes included clearing order by's on the count query and also returning...
Filed under: , , , ,

Set the value of a version column in NHibernate manually by stefan.sedich

My first post in a long time :), look forward to more from me. I am currently working on a project and for the first time am using NHibernate, I must say compared to LINQ to Sql I am in love, NHibernate ROCKS! An issue I was having was that I have a version...
Filed under: , , ,

Enhanced XMLSiteMapProvider with support for dynamic nodes. by stefan.sedich

Hello All, This might be a long one so bear with me here this might bore you :). I have have had the need to be able to add dynamic nodes to my sitemap, I am using a sitemap xml file. My first solution, was to create a custom sitemap provider, which would...
More Posts Next page »