I'm using LLBLGen Pro 3.1 Final on an Oracle database. Our database administrators are using Oracle Designer to maintain the database, in which they define possible values for a specific column. For instance, we have a relation table, which holds name and contact info. One column in this table is type, which has two possible values:
- C = "Customer"
- S = "Supplier"
this is implemented as a check constraint in Oracle:
CONSTRAINT "customer_type" CHECK (TYPE IN ('C', 'S')) ENABLE
Is it possible to create a template in LLBLGen which generates a switch statement based on the possible values of the column? I want to add a property to the Entity which translates the possible values:
public String TypeTranslated
{
get
{
switch (Type)
{
case "C":
return "Customer";
case "S":
return "Supplier";
}
}
}