[英]How can i iterate through all System.Data.SqlDbType s?
As my questeion above i would like to iterate through ALL System.Data.SqlDbType
s. 作为我上面的问题,我想遍历所有
System.Data.SqlDbType
。 How is this possible? 这怎么可能?
I'm thinking about something like this: 我正在考虑这样的事情:
foreach (var type in System.Data.SqlDbType(s))
{
..code
}
I know System.Data.SqlDbType is no List or IEnumerable :) 我知道System.Data.SqlDbType是没有列表或IEnumerable :)
You may try this: 您可以尝试以下方法:
foreach (SqlDbType type in Enum.GetValues(typeof(SqlDbType)))
{
..code
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.