Posts Tagged ‘Code generation’

I want my foreign key to be mapped to a single object and not a collection

Say you have two tables:  Teams and Registrations
Registration has a foreign key for Teams :

In Subsonic 3, the Registration class will have a property called “Beach_Teams” which returns a IQueryable<Beach_Team> collection.
If we look at the generate class in the activerecord.cs file, there is a “Foreign Keys” region which contains the Beach_Teams property:

#region ‘ Foreign [...]

More »

Subsonic : Specify the tables you really need !

With the Subsonic’s T4 Templates you can specify the tables you don’t want the access code to be generated.
But what if you want to choose the tables for which the mapping classes will be created ?
Actually you can have many reasons to do that : having an application using only specific tables from a big [...]

More »