c# - What is the best practice to define consistently from access layer to listitems -


i quite new asp.net / webforms , might sound basic question, if defining client class in webforms asp.net hold clientid, clientname , type of client (proposed, fullclient, dead) not sure of best way make consistent access layer/database, hold type of 'p' - proposed f - fullclient , 'd' dead definition of client class through creating listitem setting client in html of possible choices requires option , description believe class uses enum? if point me simple great.

thanks in advance.

just use enum, can store things in shared project other projects have references too, yourproject.utilities.

here's enum:

public enum clienttype {     [description("proposed")]     proposed = 1,      [description("dead")]     dead = 2,      [description("full client")]     fullclient = 3 } 

Comments

Popular posts from this blog

java - Jmockit String final length method mocking Issue -

asp.net - Razor Page Hosted on IIS 6 Fails Every Morning -

c++ - wxwidget compiling on windows command prompt -