Not pluralize entity sets

7 posts, 0 answers
  1. Alex
    Alex avatar
    27 posts
    Member since:
    Oct 2011

    Posted 10 Apr 2012 Link to this post

    Hi,

    I have a project where the entity sets (the context properties that get all the entries from a given table) are somehow related to the table name. The pluralization that happens when creating the model from the database breaks the relation. Is it possible to not pluralize the entity sets automatically?

    Regards,

    Alexis
  2. PetarP
    Admin
    PetarP avatar
    754 posts

    Posted 12 Apr 2012 Link to this post

    Hi Alexis,

     There is an option in our Naming Strategies for pluralization of the collections. From there you can either instruct our naming mechanism to pluralize/singularize or keep your associations unchanged.
    You can find those options on initial model import or you can apply them on your existing model using the Batch Operation Dialog.

    All the best,
    Petar
    the Telerik team
    Telerik OpenAccess ORM Q1 2012 release is here! Check out what's new or download a free trial >>
  3. DevCraft banner
  4. Alex
    Alex avatar
    27 posts
    Member since:
    Oct 2011

    Posted 12 Apr 2012 Link to this post

    Hi Petar,

    These documents explains how to manage the pluralization of the Class names, the Properties and the Fields. However, I can't see how to control the naming scheme for the entity sets that are exposed as properties of the context. By default, those properties use the pluralized class name. I'd like to keep it unchanged from the class name.

    The properties I refer to can be found in the OpenAccess Model Explorer, under Domain Context and then Entity Sets.

    Did I miss something from your previous answer?

    Thank you,

    Alex

  5. Ivailo
    Admin
    Ivailo avatar
    318 posts

    Posted 13 Apr 2012 Link to this post

    Hi Alexis,

    Unfortunately, controlling the pluralization of those entity sets is currently not supported. We have already received this feature request from other people so we will probably introduce some this enhancement in one of our future releases.

    Please accept our apologies for the inconvenience caused until this feature is implemented.

    All the best,
    Ivailo
    the Telerik team
    Telerik OpenAccess ORM Q1 2012 release is here! Check out what's new or download a free trial >>
  6. Andrej
    Andrej avatar
    2 posts
    Member since:
    Feb 2013

    Posted 01 Jul 2013 Link to this post

    hi,

    that was over a year ago...
    when will this be implemented?

    king regards, andrej
  7. Alexander
    Admin
    Alexander avatar
    727 posts

    Posted 04 Jul 2013 Link to this post

    Hello Andrej,

    I am afraid there has not been many requests about this functionality and it is currently with low priority in out backlog. Please feel free to add an entry to our Ideas & Feedback portal, so other customers can vote for it and higher the priority.

    Regards,
    Alexander
    Telerik
    OpenAccess ORM Q2 2013 brings you a more powerful code generation and a unique Bulk Operations support with LINQ syntax. Check out the list of new functionality and improvements shipped with this release.
  8. Andrej
    Andrej avatar
    2 posts
    Member since:
    Feb 2013
Back to Top
DevCraft banner