We use SubSonic as an ORM of sorts(really more of a query-helper). For one reason or another, we have a bit of a dynamic schema and as such certain tables have generated column names and such. Well, this has been all fine and dandy until now. Now, our production generated columns don't match up with our development generated columns. The first work around that came to mind is just regenerate the subsonic files before deploying to the production servers, but that seems a bit messy. Is there any better way than this?
Note, that these generated columns are never actually used from the ORM but we do sometimes pull down entire rows using
var data=MyData.DynamicTable.SingleOrDefault(x => x.id==1);
That would throw an error in production though using the development generated subsonic files when trying to load GeneratedColumn10
or whatever, which exists in development but not in production.