I'm not talking about having llblgen generate the enumeration definitions for me based on the database, just changing the type that gets generated for a field.
To clarify: In the database I have an integer field named, for example, "Options". Somewhere in my code I have an enumeration that defines the values that are allowed for the "Options" field for this entity:
enum MyOptionsEnum
SomeOption=1,
SomeOtherOption=2,
AThirdOption=3
end enum
After llblgen generates my class, with Options as an integer, I override that property so that Options is now a MyOptionsEnum instead of an integer:
public shadows property Options as MyOptionsEnum
Get
return ctype(mybase.Options,MyOptionsEnum)
End Get
Set (value as MyOptionsEnum)
mybase.Options=ctype(value,int)
End Set
end property
What would be nice is if, int the designer, I could specify that the "Options" field is a "MyOptionsEnum" enumeration. llblgen would then generate the property as MyOptionsEnum instead of integer.