Can .NET 4 ISet<> HashSet<> replace NHibernate Iesi.Collections ISet , HashSet?

后端 未结 3 1768
清酒与你
清酒与你 2021-02-07 01:28

Can .NET 4 ISet<> HashSet<> replace NHibernate Iesi.Collections ISet , HashSet ? I am using Castle proxy, and NHibernate 3.0 .

3条回答
  •  执念已碎
    2021-02-07 01:47

    No, not as of this reply.

    The NHibernate engine uses the Iesi.Collections.ISet interface on internal collection classes which are used as wrappers around collections in your classes which NHibernate persists. There is no direct conversion to System.Collections.Generic.ISet.

    Update: NHibernate 4 now uses HashSet from the BCL internally, and HashedSet has been removed from the Iesi.Collections dependency. The approach to use System.Collections.Generic.ISet is now available.

提交回复
热议问题