asp.netsubsonic3data-access

Changing the CreatedBy convention in SubSonic (3x)


I'm working against a database that wasn't designed by me and in all the tables there is a CreatedBy field that is an int. Now when I generate against this database I get all kinds of errors, because SubSonic is expecting that field to be a varchar.

I don't particularly want to go and rename the field in all of these tables so I was hoping there was a way to "alter" or change the internal convention (without getting into the source) in SubSonic.

Has anyone been able/done this in SubSonic 3.0.4??

I'm using the active record model in SubSonic 3.


Solution

  • After much research and pouring through the source there is no simple way of doing this. I renamed all the columns to CreatedById and I'm good to go.

    It sucks that you can't override this convention, but I definitely "get it".