How do I tweak property names in the model?

4 posts, 0 answers
  1. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 27 Nov 2010 Link to this post

    It's generating ID columns as I_D (so logID is log_i_d)....is there any way to get some fine detail on the names in the domain model?
  2. Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 29 Nov 2010 Link to this post

    Hello Steve,

    I suggest you reading the following help articles “Naming Rules Dialog” and “How to: Modify Naming Settings” which demonstrate how to manage the naming settings and rules for a domain model.
    Hope you will find the provided information useful.

    Kind regards,
    Damyan Bogoev
    the Telerik team
    Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
  3. DevCraft banner
  4. Steve
    Steve avatar
    1851 posts
    Member since:
    Dec 2008

    Posted 29 Nov 2010 Link to this post

    I thought the naming setting dialog was just for mapping an existing table to an entity...

    Like I have a "Name" property and it's going in as "nme" in the database. So would that be the Pluralization UnChanged I would be setting?...it's not really pluralization though, and I don't see any other property which references that
  5. Damyan Bogoev
    Admin
    Damyan Bogoev avatar
    581 posts

    Posted 30 Nov 2010 Link to this post

    Hello Steve,

    Actually the Naming Rules Dialog refers to the class, property and field names. I want to apologize for my misleading answer in the previous post.
    You could set the column names manually using the Table Editor. If you have not explicitly created a table for this class, you could use default mapping for a start. It will automatically create a table and map the class to this table. To achieve this, do the following:
    -   Select the class from the visual designer;
    -   Open the Mapping Details Editor – Table Mappings section;
    -   Check the Use Default Mapping setting which will create the default table for this class;
    -   Locate the table under Model Schema Explorer;
    -   Use the Table Editor to edit the column names;
    We will try to improve the naming strategy for creation and migration scripts for Q1.
    Hope that helps.

    Best wishes,
    Damyan Bogoev
    the Telerik team
    Accelerate your learning with industry's first Telerik OpenAccess ORM SDK. Download today.
Back to Top