NULL を Int32 に変換する例外があります。
nullable tinyint を使用してデータベースからテーブルを取得しました
[Column(Storage="_StatType", DbType="tinyint NULL")]
public StatType : int { get { _StatType; } }
(C# コードを取得するには、変数の型を置き換えるだけです)
そしてlinqを選択した後
def StartLinq = linq <#from lpi in _CfgListParIzm
where lpi.ID_ListParIzm==drr1
select (lpi.StatType)
#> ;
StartLinq.ToArray()[0]
null の場合は読み取れません:-/
mutable STT : int = 0;
try
{
_=int.TryParse(StartLinq.ToArray()[0].ToString(), out STT);
}
catch { | _ is Exception => () /* I don't care*/ }
上のコードは非常に貧弱なトリックです:(私はそれを使用しません。