F#からDbCommand.ExecuteScalarを使用するにはどうすればよいですか?これは、intに変換する必要のあるobjを返します。私はF#を初めて使用しますが、実行する必要のあるキャストは明確ではありません。
let (stockid:uint32) = command.ExecuteScalar()
Compile Error:
Type constraint mismatch. The type obj is not compatible with type uint32
:?>を使用したアップキャストは、ランタイムエラーをスローします。