alkampfer on February 29th, 2008

Two days ago hammet link one of my old post, (http://hammett.castleproject.org/?p=252) I want now to make another considerations. The end of my old post (http://www.nablasoft.com/Alkampfer/?p=105) reported this problem, I have a class DisposableCon that implements IDisposable, this class declare a dependency from an object That implements ITest, This is the object model

This simple [...]



kick it on DotNetKicks.com

Continue reading about Again on Castle Transient and the Custom lifecycle

alkampfer on February 27th, 2008

I’ve stumbled onto Autofac, this seems to be a new IOC container, that promise good thing….maybe it’s worth to take a look at.
Alk.
Technorati Tags: IOC,Autofac



kick it on DotNetKicks.com

Continue reading about A new container for Inversion of Control

alkampfer on February 27th, 2008

One of the most feared missing feature of the ICriteria API is the possibility to specify condition on projection with Having. Suppose you have this simple connection between a container and a contained object,

The EntityContainer class has a property called Test, is an IList<EntityTest> and EntityTest has a Container property to link back to [...]



kick it on DotNetKicks.com

Continue reading about NHibernate ICriteria Count and the missing "Having"

alkampfer on February 19th, 2008

Previous part: Part1, Part2
Ok, lets move on on the anatomy of an expression, let’s take as example the following screenshot.

The original expression is customer => customer.Property.StartsWith(”A”), and the expression is dissected in a node of type Lambda that contains a Call node. The Call node is a node that express the invocation of [...]



kick it on DotNetKicks.com

Continue reading about Against on ExpressionTree

alkampfer on February 16th, 2008

In the preceding post I showed that a lambda expression can be converted by the compiler in an object of type Expression that actually models the expression tree. With this post we can begin to have more fun, first of all I modified the visitor to show the exact tree of the expression. Here is [...]



kick it on DotNetKicks.com

Continue reading about C# 3.0 Expression Tree Again (part 2)