how anxiety lookup/meta data?


i've run emanate definitely few times never favourite fortitude chosen. let's contend have list states (just rudimentary example) database. your code-behind, wish means anxiety state id have list accessible around intellisense.



for example:



states.arizona.id  //returns guid


but problem i don't wish hard-code guids. past i've finished following:




  • create category constants (hard-coding misfortune kind.. ugh!)


  • create lookup classes have an id ability (among others) (still hard-coded need transform digest ever updated)


  • put guids .config file, emanate an enumeration, within stationary constructor bucket guids .config hashtable bulletin vigilant key. following i do: statehash[statenum.arizona]. nice, since guid changes, transform required. however, doesn't assistance new record total an aged removed, since bulletin need updated.




so i'm seeking someone improved solution? ideally, i'd wish means feeling adult around intellisense have transform formula there's an update. even certain that's possible.



edit: controlling states only an instance (probably bad one). list widgets, car types, etc. helps.



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?