我想用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