Something like this maybe? 
http://stackoverflow.com/questions/588360/table-prefix-using-castle-active-record

On Sep 2, 12:23 pm, Ryan <[email protected]> wrote:
> I have a class whose ActiveRecord table attribute I would like to
> override at runtime. I'd like to do this because my test database
> (using SQLite) does not support the table name that my production site
> uses. So I'd like to have my base test class override the attribute
> before initializing ActiveRecord. I could even do it after
> initialization, but before schema creation. Is such a thing possible?
>
> Example:
> [ActiveRecord(Table = "LINKEDSERVER.DATABASE.dbo.TABLE")]
> public class Whatever : WhateverBase<Whatever>
>
> In other words, is there any way to intercept ActiveRecord's
> Initialize to be able to rename that string, even by simply adding the
> single quotes, e.g. `whatever`?
>
> Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Castle Project Users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/castle-project-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to