Example #1
0
 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);
 }
Example #2
0
		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);
		}