Browse by Tags

All Tags » .NET 3.5 (RSS)

So I Created Another Utils Library by stefan.sedich

Thought it was time I start my own Utils library (why not everyone else seems to have one), I have things like a UnitOfWork implementation, base Repository class, and plan to add more things as I go. This is still a work in progress and I would appreciate...

In Memory SQLite + Unit Test + FluentNHibernate by stefan.sedich

UPDATE: I have forked fluent NH here: http://github.com/stefansedich/fluent-nhibernate, and added a change so we can just use: .Database(SQLiteConfiguration.Standard.InMemory().ShowSql()) By default the InMemory() helper will now add the pooling support...

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: , , , ,

Bug with Latest Google Chrome and ASP.NET Validation by stefan.sedich

Hello, This is something that drove me insane today, I have a dropdown control with a required field validator on this control. the dropdown is also set to autopostback. Now up until after lunch today this was working fine in chrome but after lunch it...

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...
More Posts Next page »