Using a custom property to populate a sequence attribute
In this recipe, we will go over a generic programming technique that you can use to assign database sequence values to specific entity object attributes. Generic functionality is achieved by using custom properties. Custom properties allow you to define custom metadata that can be accessed by the ADF business components at runtime.
Getting ready
We will add this generic functionality to the custom entity framework class. This class was created back in the Setting up BC base classes recipe in Chapter 1, Pre-requisites to Success: ADF Project Setup and Foundations. The custom framework classes in this case reside in the SharedComponets
workspace. This workspace was created in the recipe Breaking up the application in multiple workspaces, Chapter1, Pre-requisites to Success: ADF Project Setup and Foundations. You will need to create a database connection to the HR
schema, if you are planning to run the recipe's test case. You can do this...