union WidgetType = A | B | C
interface WidgetInterface {
id: ID!
name: String!
type: WidgetType!
}
我犯错了,不能通过listprocedures中的所有程序名来做foreach。 Listprocedures很好地填充了数据,但是在foreach中它给了我错误,Listprocedures中的第一项是null ...
答案 0 :(得分:0)
以这种方式完成
var procedureNames = Ix.GetConnection.Query(@"SELECT PROCNAME FROM SYSPROCEDURES WHERE PROCNAME LIKE 'web_%'");
foreach (IDictionary<string, object> row in procedureNames)
{
foreach (var procName in row)