About your host

Photo of your host - Charles Vallance Charles Vallance is a web developer with a slight case of OCD when it comes to nice clean standards compliant html and code.

Badges

twitter / cvallance
My articles have been featured in The Morning Brew - Daily .NET News and Views

Tag Cloud

more tags...
castle

I've been wanting to make a site using the Castle Project for a while now and I finally took some time out yesterday to give it a whirl. First impressions, awesome... I can't wait to get fully stuck into it! Which should be about 1 minute after writing this! :-) I've just finished using CakePHP for a big project, so MonoRail's MVC way of thinking isn't foreign to me. I've also been wanting to have a look at NHibernate and ActiveRecord is built on top of NHibernate so I can get a bit of a low down on how...

I've been doing a bit of experimentation with Castle Validation recently and thought I should write about a few of my findings... also found a couple of oddities here and there which Hammett squashed very quickly. Setting up the validation rules was as easy as 1, 2, 3. It was just a matter of adding some validation attributes to my public properties in my ActiveRecord classes. Eg. [Property] [ValidateNonEmpty("First name is required")] public string FirstName { get { return _firstname; } set { _firstname = value; } } I could quite easily dictate how the validation...