telerik-open-accessopenaccess

Generate Enums from Tables using Telerik OpenAccess


Reading the Telerik OpenAccess documentation, I see that I can set the data type of a Domain Class Property to an enumeration I have explicitly coded. Instead of coding them, can I use OpenAccess to generate (and maintain) enumeration types from my tables?


Solution

  • The Enum generation based on a database table is not supported out of the box by the Telerik OpenAccess ORM but after a short search in Google I found this Blog Post demonstrating how to achieve that by a standalone code generation template.

    You could also add a feature request in the Ideas and Feedback portal of OpenAccess ORM for providing this functionality out of the box.