iesi-collections

What is a suitable NHibernate / Iesi.Collections.Generic.ISet<T> replacement?

混江龙づ霸主 提交于 2019-12-23 09:10:59
问题 In the latest version of Iesi.Collections is missing Iesi.Collections.Generic.ISet. There seem to be three alternatives: LinkedHashSet ReadOnlySet SynchronizedSet Iesi.Collections.Generic.ReadOnlySet seems to be the closest to the ISet, and the documentation states: ... although it's advertised as immutable it really isn't. Anyone with access to the wrapped set can still change the set. It seems that the ReadOnlySet is the best replacement for the ISet? Currently the implementation is adding

Can't add item to iesi.collections.generic.iset

我的梦境 提交于 2019-12-13 04:50:10
问题 Trying to add item to iset, but it doesn't happens. var controlPoint = new ControlPoint {Lon = 53.25253, Lat = 56.23422, Radius = 16}; //controlPoint.ApprovedRoutes = new HashedSet<ApprovedRoute>(); controlPoint.Save(); var route = new ApprovedRoute(); route.ControlPoints = new HashedSet<ControlPoint>(); route.ControlPoints.Add(controlPoint); route.Name = "sometext"; route.Save(); //controlPoint.ApprovedRoutes.Add(route); //controlPoint.Save(); classes: public class GeoPoint: Entity<long> {