c# - Alternative to "char" enum -
I have a database that needs a single status status code ('E' or 'U') to position column updates to do.
I want to use an enim to update this field through my API to ensure that potential values are properly restricted. Iram can not be clearly of four types, can it be a good alternative way?
No more, I can not change database schema :)
you enum members You can specify the characters for.
This helps:
enum status {empty = 'E', updated = 'U'} zero main () {status position = position. Empty; Console.light line ("{0}: {1}", position, (four) position); }
Comments
Post a Comment