public override void Execute(NeoDatis.Odb.OID oid, NeoDatis.Odb.Core.Layers.Layer2.Meta.AttributeValuesMap
			 values)
		{
			this.value = values[attributeName];
			if (NeoDatis.Odb.Core.Layers.Layer2.Meta.ODBType.IsCollection(this.value.GetType(
				)))
			{
				// For collection,we encapsulate it in an lazy load list that will create objects on demand
				System.Collections.Generic.ICollection<object> c = (System.Collections.Generic.ICollection
					<object>)this.value;
				NeoDatis.Odb.Impl.Core.Query.List.Objects.LazySimpleListOfAOI<object> l = new NeoDatis.Odb.Impl.Core.Query.List.Objects.LazySimpleListOfAOI
					<object>(c.Count, GetInstanceBuilder(), ReturnInstance());
				l.AddAll(c);
				this.value = l;
			}
		}
Exemple #2
0
 public override void Execute(NeoDatis.Odb.OID oid, NeoDatis.Odb.Core.Layers.Layer2.Meta.AttributeValuesMap
                              values)
 {
     this.value = values[attributeName];
     if (NeoDatis.Odb.Core.Layers.Layer2.Meta.ODBType.IsCollection(this.value.GetType(
                                                                       )))
     {
         // For collection,we encapsulate it in an lazy load list that will create objects on demand
         System.Collections.Generic.ICollection <object> c = (System.Collections.Generic.ICollection
                                                              <object>) this.value;
         NeoDatis.Odb.Impl.Core.Query.List.Objects.LazySimpleListOfAOI <object> l = new NeoDatis.Odb.Impl.Core.Query.List.Objects.LazySimpleListOfAOI
                                                                                    <object>(c.Count, GetInstanceBuilder(), ReturnInstance());
         l.AddAll(c);
         this.value = l;
     }
 }