Sep
13
Writing the Domain Model classes: coding time (Castle MonoRail and ActiveRecord Tutorial - Part 5)
Filed Under devs, .NET, CastleProject, Tutorials, Castle MonoRail and ActiveRecord Tutorial | 4 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 these 5 classes.