Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

Enum Generation

Watch this video for a quick tutorial on Enum Generation!

Widget Connector
width500
urlhttp://www.youtube.com/watch?v=O9okRqA6PN8&feature=player_embedded
height400310

PLINQO's enum generation can easily turn a table of data into an enum. Enum values are often stored and maintained in the database and in code resulting in the task of updating both locations when changes are needed. Making the same change twice just to keep things in sync is definitely a frustrating process. PLINQO makes it simple to define the list of Enum tables to generate and which fields contain the enum name and description. The result is enums are maintained in one spot and life is good.

PLINQO enum generation easily turned priority table into an enum.

...

Code Block
languagecsharp
[DataContract]
public enum Priority : int
{
    [EnumMember]
    High = 1,
    [EnumMember]
    Normal = 2,
    [EnumMember]
    Low = 3,
}

Next: Many to Many Relationships