2016-03-23 11 views
2

Windows Smart ClientソリューションをnHibernate 2.2から4.0にアップグレードしています。 Iesi.Collections(4.0.1.4000)も同様に更新する必要がありました。タイプまたは名前空間の名前 'ISet'が存在しません

この行で

:私はこのエラーを取得する

protected Iesi.Collections.Generic.ISet<PermitEvent> eventSet; 

The type or namespace name 'ISet' does not exist in the namespace 'Iesi.Collections.Generic' 

この質問は2つの他のサイトで未解決になった:
http://www.c-sharpcorner.com/forums/the-type-or-namespace-name-iset-could-not-be-found http://www.resolvinghere.com/cc/the-type-or-namespace-name-iset-could-not-be-found.shtml

私は何を行うことができます?

+0

[?い、このヘルプ](http://stackoverflow.com/q/ 23211641/2530848) –

+0

これまで、この種の問題のために、Iesi.CollectionsではなくIEnumerableとIListを使用しました。コード変更(潜在的に多くのコード変更)が含まれていることはわかっていますが、これはここでのオプションかもしれませんか? –

答えて

2

NHibernate 4では、ほとんどの場合、あなたはdo not need anymore to explicitly depend on Iesiです。

System.Collections.Generic.ISet<T>を使用するようにエンティティコードを移行する必要があります。

これはIesiに問題が発生する前でも私がやったことです。あなたがIesiと一緒にいたいなら、お手数ですが、お手伝いできません。私はそれが単に可能ではないと思うことさえある。

Release notesは、 "** NH3.3.3.GAから4.0.0.GAに知られているBREAKINGのCHANGES":

Many uses of set types from Iesi.Collections have now been changed to use corresponding types from the BCL. The API for these types are slightly different.

関連する問題