何が問題なのか分からない簡単なコードを書きました。
コードは次のとおりです。
var sortSecurities="SELECT * FROM securities";
int total=0;
var value="";
foreach(var row in db.Query(sortSecurities))
{
value=row.lastGate;
total=Convert.ToInt32(value)*100;// here the problem with compilation..
db.Execute("INSERT INTO holding(IDgrossPortfolio,IDSecurity,totalHolding,units,buyGate) "+"VALUES (@0,@1,@2,@3,@4)",row.category,row.number,total,"100",row.lastGate);
}
変換の問題は何ですか?
エラーは次のとおりです。
例外の詳細: System.FormatException: 入力文字列が正しい形式ではありませんでした。