How I can use the SchemaName in the EntityName?

Posts   
 
    
juand
User
Posts: 1
Joined: 03-Jun-2011
# Posted on: 03-Jun-2011 20:15:40   

How I can use the SchemaName in the EntityName?

I have a table with this name:

SystemAccount in the Schema "SystemCore"

How I can generate a namespace SystemCore?

For example:

SystemCore.SystemAccountEntity

Thyanks.

P.D. I have the 3.1 version.

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 03-Jun-2011 21:04:24   

Hi juand,

In v3.1 you can create groups. In your case you want a group per schema. So, in Project Properties set the SetGroupNameAfterSchemaName property to true (that is the default value):

**SetGroupNameAfterSchemaName **When set to true (default), the designer will automatically set the group name of new elements to the name of the schema the target element is located in. If the target database has a default schema name (e.g. 'dbo'), the default schema name is converted to the empty string for the group name. If the target database doesn't use schemas, this setting is ignored.

Now, to generate as different schemas, the only way is that you set the **GroupUsage **property in Project Properties to "as separate projects". This will generate a DBGeneric VSNet project per group (schema), so you will have separate namespaces, but you also will have separate VSNet projects. In your solution you just need to add all these separate projects and your DBSpecific project.

There is no way to generate one VSNet project and multiple namespaces per group.

David Elizondo | LLBLGen Support Team