如何设置自动映射到地图 System.Collections.Generics.ISet< T>
正确
How to set up auto mapping to map System.Collections.Generics.ISet<T>
correctly?
我试图实施 IHasManyConvention
,但在智能感知似乎 IOneToManyCollectionInstance
没有任何东西是(?)
I tried implementing IHasManyConvention
, but in intellisense it seems that IOneToManyCollectionInstance
does not have anything for that(?)
这是达不到功能NHibernate,因为NHibernate的只是没有任何内置的实施 System.Collections.Generics。的ISet&LT; T&GT;
This is not up to Fluent NHibernate, because NHibernate just doesn't have any built-in implementation for System.Collections.Generics.ISet<T>
.
如果你真的想使用.NET的的ISet代替Iesi.Collections,现在你得自己写。使用 PersistentGenericSet ,以供参考。
If you really want to use .NET's ISet instead of Iesi.Collections, for now you'll have to write it yourself. Use PersistentGenericSet for reference.