Exemplo n.º 1
0
        public void AddComponentReferenceProperty(IReferenceProperty referenceProperty)
        {
            var coalesceValue = referenceProperty.ReferencedElement;

            if (referenceProperty.Collection != null && referenceProperty.Collection is IEnumerableExpression <IModelElement> enumerableExpression)
            {
                coalesceValue = (INotifyReversableExpression <IModelElement>)Observable.Reversable(() => enumerableExpression.FirstOrDefault());
            }
            Coalesce(coalesceValue);
        }
Exemplo n.º 2
0
        public static void BuildProperty(IReferenceProperty property, TypeBuilder type, PropertyBuilder propertyBuilder, Dictionary <IBusinessObjectBase, TypeBuilder> definedTypes)
        {
            var p = propertyBuilder; //PropertyLogic.BuildPropertyCore(property, type, definedTypes);

            if (property.LookupEditorMode.HasValue)
            {
                p.ModelDefault("LookupEditorMode", property.LookupEditorMode.Value.ToString());
            }
            if (property.LookupProperty != null)
            {
                p.ModelDefault("LookupProperty", property.LookupProperty.Name);
            }
            if (!property.AllowClear)
            {
                p.ModelDefault("AllowClear", "False");
            }

            BuildFilterOption(property, p);
        }
Exemplo n.º 3
0
 public static void AfterConstruction(IReferenceProperty p)
 {
     p.AllowClear = true;
 }