Thinking in GIS

a blog about GIS from a urban geogeek living at the countryside

Feed, Categories, Archives


Writing the Domain Model classes: coding time (Castle MonoRail and ActiveRecord Tutorial - Part 5)

Posted: September 13, 2007
Categories: devs, Tutorials, .NET, CastleProject
Feedback: View Comments

This is the fifth post of a series started with this post about a MonoRail and ActiveRecord tutorial.With this post we will finally start to write code for our MonoRail and ActiveRecord tutorial. Here we will go on writing the model classes, and from them we will autogenerate the database schema (alternatively you could first create the database schema and then generate the classes using the generator).We need to write 5 classes for our 5 models (Album, AlbumGenre, Artist, Genre, Support). As we discussed the convention is to place them under the Models folder of our CastleProject solution.So let's create...
Read the full post

Writing the Domain Model classes: implementing Relationships (Castle MonoRail and ActiveRecord Tutorial - Part 4)

Posted: August 30, 2007
Categories: devs, Tutorials, .NET, CastleProject
Feedback: View Comments

This is the fourth post of a series started with this post about a MonoRail and ActiveRecord tutorial.Last time we wrote the Album class and we have seen how to implement the primary key mapping and simple properties mapping.With simple properties mapping I mean the class properties that will go to map simple data type in the database. Instead with complex properties I will mean the class properties that will go to map a relationship with another table in the database.For the album class there are simple properties (ID, Name and Year) and complex properties (Support, Artists and Genres).The simple...
Read the full post

Writing the Domain Model classes: implementing Identifiers and Properties (Castle MonoRail and ActiveRecord Tutorial - Part 3)

Posted: July 10, 2007
Categories: devs, .NET, CastleProject
Feedback: View Comments

This is the third post of a series started with this post about a MonoRail and ActiveRecord tutorial.There are several approaches for writing the domain model classes for a MonoRail and ActiveRecord application:Create the domain model classes from a generator, providing a database schemaCreate the domain model classes from scratchConsequently, if you have chosen to create the domain model classes from scratch, after you have created the domain model classes you can auto-generate the database schema.If instead you have already the database schema, you could opt for the first point (and maybe retouch them after the generation).For the aims of...
Read the full post

MonoRail and ActiveRecord configuration (Castle MonoRail and ActiveRecord Tutorial - Part 2)

Posted: May 27, 2007
Categories: devs, Tutorials, .NET, OOAD, CastleProject
Feedback: View Comments

This is the second post of a serie started with this post about a MonoRail and ActiveRecord tutorial.Let's start developing our sample application. The first thing we need to do is to create a .NET project configured for using the CastleProject stuff. You can go in two ways:Create a Visual Studio project with the MonoRail project wizard.The wizard will create for you the MonoRail project structure, generate the configuration elements in the web.config file and add all the necessary references to the project. You will be prompted to choose a view engine (NVelocity, Brail or ASP .Net Web Forms), if...
Read the full post

Castle MonoRail and ActiveRecord Tutorial (Part 1)

Posted: May 22, 2007
Categories: devs, Tutorials, .NET, CastleProject
Feedback: View Comments

In the last 2-3 years there were a lot of talking about agile and high-productivity development with an outstanding framework that is already in the legend, like happened to Java in the late 90s: Ruby on Rails.Given its success, many other project in the Open Source community were born trying to reproduce the beauty of the Ruby on Rails rapid and agile development framework for other environments. Just to name a few: Turbogears for Python and Grails for Java.The main features of these rapid development framework generally are:Convention over configuration PatternMVC PatternInversion of Control Containers and the Dependency Injection PatternAn...
Read the full post