阅读背景:

如何为枚举char(1)数据库字段实现C#枚举?

来源:互联网 

OK, so I have a database field of type char(1) that has a small number of possible state codes (e.g. 'F'= Failure, 'U'=Unknown, etc.). I'd like to have a C# enum class that corresponds to these states. I can do:OK, so I have a database field of type char(1)




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: