Archive for November 2007

Life is learning, after getting myself familiar with the Castle stack I started to look at another abstraction stack known as ‘Rhino-Tools’ as it advertises to ease my development life so why not give it a shot ;) then the story go:

Once these tools get installed I fire up my vs.net command line:
..\castle-trunk>nant >buildLog.txt

well it still complaint me that MbUnit or NUnit can not find … WhAT?
BCurse I did not add MbUnit or NUnit path to the execute path environment :( anyway my path string is already too long I decided to set the path of these two framework directly in the ..\castle-trunk\common.xml

Man ! how many times did you hear me say “I’m love the Generic so MUCH”. Not only it elegant but it really got it gold purpose of code reduction. Let look back at my previous solution on ActiveRecord Type Hierarchy and see how generic could help me:

In any database application I can say. We need to have a read-only list for user to pick instead of manually key in. I knew that this can be done easily using Castle.ActiveRecord so I started out like this:

Testing
Lucky that I start with this: ProjectTypeList.DeleteAll();
Which cause all the records in the Lookup table deleted. WEIRD !
It suppose to delete all records in Lookup table with column Type = “PTL”

Okay, I keep testing with FindAll() method and the result was not satisfied. I start lookup for the solution in the forum finally I got the answer from Hammett’s replied.

The answer is: “Implement our own DeleteAll(), FindAll() and other method by in the derived classes.”