protected virtual void InitType(Type containedType, IPersistent parent, Type viaType) { containedMap = ObjectFactory.GetMap(broker, containedType); Check.Verify(containedType.GetInterface("IPersistent", false) != null, Error.UnsupportedType, containedType); listType = parent == null ? GentleListType.StandAlone : (viaType == null ? GentleListType.OneToMany : GentleListType.ManyToMany); }
protected virtual void InitType( Type containedType, IPersistent parent, Type viaType ) { containedMap = ObjectFactory.GetMap( broker, containedType ); Check.Verify( containedType.GetInterface( "IPersistent", false ) != null, Error.UnsupportedType, containedType ); listType = parent == null ? GentleListType.StandAlone : (viaType == null ? GentleListType.OneToMany : GentleListType.ManyToMany); }