home recent topics recent posts search register faq   AspNetForum v.4.8.2.0

Huagati Systems Support Forum :: Forum

user:
psw:
| lost password
Home » Huagati DBML/EDMX Tools Support » Schema on Data Classes Messages in this topic - RSS
11/6/2009 10:54:03 PM
csmith12
Posts 2
Experienced members,

Am I missing the option to prefix the schema to the generated data classes?

I basically have this situation.

SQL Server Tables (schema.tablename)
Institution.Feature
Department.Feature

DBML Outpu
Institutions
Features
Departments
Feature1

Desired Output (underscore is a optional character could be _, ., - anything that makes sense)
Institution_Institions
Institution_Features
Department_Departments
Department_Features

Adding them to the same dbml creates a Feature1 data class. I have reviewed the naming rules and options but do not see a method to utilize the schema as part of the name of the generated entity. Is this a new feature request or already in the product?

Thanks and cheers,

Chris
11/9/2009 12:13:27 PM
Kristofer
Posts 240
Hi,

That is not currently supported but others have asked for the same thing. I will try to get that included in the next update.

Best regards,
Kristofer
11/13/2009 1:13:06 PM
Kristofer
Posts 240
There's a couple of new settings in the latest release (v 1.81) that allow you to do this:

1) The renaming feature now allow you to choose whether the base name that the add-in will apply the naming rules to should be the current entityset/type/member/method name, or if it should use the db-side names as the base when applying the rules.
2) The entity set, entity type, and stored procedure tabs has a new setting called "Fully qualified name" which is only available if the "base name" setting above is set to database object name. If that checkbox is selected, the entity set/type and/or function names will be prefixed with the schema name. Note that it can be set individually for sets (dc table accessor properties), types (class names), and SPs/functions (methods).



As usual, the preview box at the bottom of the name rule settings form can be used to see what the names will be after renaming (3, 4, 5).

Also, the latest used naming rules will also be applied to new objects detected when running the update/compare feature, and the rules can be accessed/changed from the "naming" button in the update/compare options dialog.
edited by Kristofer on 11/13/2009

Attachments: fqNameET.png
3/23/2010 12:12:53 AM
csmith12
Posts 2
Been a while since I have been here, but wanted to say thanks for the support to your users.

Best
pages: 1
|

Home » Huagati DBML/EDMX Tools Support » Schema on Data Classes