私は DbCommand
から使用しています: System.ComponentModel.Component
私はparamsでオブジェクトを構築しています:
DbCommand command = _webERPDB.GetStoredProcCommand("mySp");
_webERPDB.AddInParameter(command, "@a", DbType.Int32, policyId);
_webERPDB.AddInParameter(command, "@b", DbType.Int32, appPolicyPrintQaCheckListId);
_webERPDB.AddInParameter(command, "@c", DbType.Int32, createdBy);
そして今、私はlinqを使用してそれを繰り返したいと思います:
IEnumerable<DbParameter> t = from a in command.Parameters select a;
しかし、次のエラーが発生しています: