Archive for 'Frameworks' Category

Next Page »

Inspecting NHibernate Metadata

12 August 2008

I have a little project based on NSK, it uses a query model to abstract the caller from nhibernate. Despite the reason for having or not a Query Model, I expanded the base translator to translate my Query object into a NHIbernate ICriteria.
To make this translation you need to create alias, if I you create [...]

Again on INotifyPropertyChanged and POCO object

7 August 2008

In this post Matteo shows that if you build a dynamic object to create a proxy that implements INotifyPropertyChanged this does not works with BindingList<T>.
First of all I want to say that my previous two post were made only to show how to create a proxy, I really believe that using Dynamic Code Generation [...]

NHibernate and deleting a group of objects

19 June 2008

If you do not mind to issue a delete for each object, you can delete multiple objects using an overload version of the ISession.Delete() Method, here is an example.

uow.Session.Delete("select A from ActionSpawned A where A.ParentAction = :act",
ParentAction, NHibernateUtil.Entity(typeof(Action)));

The code is quite concise, you specify the query to select a series of object, and pass [...]

Castle windsor converter for Regex

4 June 2008

In previous post I explained how to build a Converter for castle, to make possibile specify regular expression in configuration file. The example is simplicistic, let’s see how to extend to create a better converter for Regular Expression.
The main problem is that RegularExpression is not only defined by the pattern but also by regular expression [...]

Castle Windsor "No converter registered to handle the type"

4 June 2008

If you have an object that has a property of some type that is not known by windsor (as example Regex), if you try to configure it with xml the error “No converter registered to handle the type” will occurs. This happens because the container read configuration as string, and then it has to convert [...]


Next Page »