1. Skip to navigation
  2. Skip to content
  3. Skip to sidebar


PLINQO for LINQ to SQL

Enum Generation

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.

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

Copyright © 2024 CodeSmith Tools, LLC. All rights reserved.