// 添加到集合中 private void CreateParameters(DbType dbtype, string parameterName, object parameterValue, ParameterDirection parameterDirection) { DbParameterStruct structs = new DbParameterStruct(); structs.DBtype = dbtype; structs.parameterDirection = parameterDirection; structs.ParameterName = parameterName; structs.ParameterValue = parameterValue; paraList.Add(structs); }