我想用F#使用System.Data.Sqlite
。在C#中,我有一個像f#關鍵字的使用和使用
using (DbTransaction dbTrans = con.BeginTransaction()) {
using (SQLiteCommand cmd = con.CreateCommand()) {
//blahblah
}
dbTrans.Commit();
}
但在F#代碼,當我使用similiar 2 using
上面我的the type bool is not compatible with the type IDisposable
錯誤... 編輯我爲我的問題真的很抱歉。 use
將在F#的情況下工作。我只是不知道如何關閉/刪除我的quesetions。
我不知道你是否真的需要刪除這個問題。這不是一個壞問題:它得到了讚賞,還有兩個體面的答案。 – Benjol 2011-02-14 06:40:29