Replacing table prefixes in OR mapper

Posts   
 
    
Jackk100
User
Posts: 48
Joined: 11-Jan-2005
# Posted on: 09-Mar-2005 00:52:28   

Hi,

I have a bunch of tables that were imorted from elsewhere and all start with a prefix that I'd like to replace with my own (when adding entities from the catalog). For example:

I have:

ab_SomeTable ab_SomeOtherTable

and want (in my catalog list):

SurveySomeTable SurveySomeOtherTable

replacing "ab_" with "Survey"

Is there a way to do that?

TIA, Jack

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 09-Mar-2005 09:17:47   

You mean, you want this prefix to be removed from the entities, or just from the tables? (and if you want it from the tables, is there a particular reason you want this?)

Frans Bouma | Lead developer LLBLGen Pro
Jackk100
User
Posts: 48
Joined: 11-Jan-2005
# Posted on: 09-Mar-2005 20:59:31   

I want the tables named dbo.rz_* to be renamed Survey* in the EntityName column of the "Add new entities from catalog" dialog box, so I don't have to manually rename each one.

IE, the table dbo.rz_Settings would get the EntityName SurveySettings.

Thx, Jack

Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 10-Mar-2005 11:44:39   

Jackk100 wrote:

I want the tables named dbo.rz_* to be renamed Survey* in the EntityName column of the "Add new entities from catalog" dialog box, so I don't have to manually rename each one.

IE, the table dbo.rz_Settings would get the EntityName SurveySettings.

Thx, Jack

Please check out the strip patterns in the project properties. Default is 'tbl', but you should fill in 'rz'. Then add the entities to the project, you'll see that the rz_ prefix is stripped off simple_smile

Frans Bouma | Lead developer LLBLGen Pro
Jackk100
User
Posts: 48
Joined: 11-Jan-2005
# Posted on: 14-Mar-2005 18:18:12   

Yup, got that. Now, any way I can replace rz_ with something instead of stripping it?

  • Jack
Otis avatar
Otis
LLBLGen Pro Team
Posts: 39933
Joined: 17-Aug-2003
# Posted on: 14-Mar-2005 18:33:08   

Jackk100 wrote:

Yup, got that. Now, any way I can replace rz_ with something instead of stripping it?

  • Jack

No, that's not supported.

Frans Bouma | Lead developer LLBLGen Pro