如何使用F#中的DbCommand.ExecuteScalar?它返回一个我需要转换为int的obj。我对F#很陌生,我需要做的演员还不清楚。F#和ExecuteScalar铸造
let (stockid:uint32) = command.ExecuteScalar()
Compile Error:
Type constraint mismatch. The type obj is not compatible with type uint32
上传使用:?>抛出运行时错误。
不会Convert.ToInt32(...)几乎可以处理任何输入,因此更容易调用? – sisve 2009-06-02 05:55:53