Ejemplo n.º 1
0
 public TestPropertyDef(xPropertyDef pd)
 {
     this.AccessControlList        = new TestAccessControlList(pd.AccessControlList);
     this.AllObjectTypes           = pd.AllObjectTypes;
     this.AutomaticValueDefinition = new TestTypedValue(pd.AutomaticValueDefinition);
     this.AutomaticValueType       = (MFAutomaticValueType)pd.AutomaticValueType;
     this.BasedOnValueList         = pd.BasedOnValueList;
     this.ContentType        = (MFContentType)pd.ContentType;
     this.DataType           = (MFDataType)pd.DataType;
     this.DependencyPD       = pd.DependencyPD;
     this.DependencyRelation = (MFDependencyRelation)pd.DependencyRelation;
     this.GUID             = pd.GUID;
     this.ID               = pd.ID;
     this.Name             = pd.Name;
     this.ObjectType       = pd.ObjectType;
     this.OwnerPropertyDef = new TestOwnerPropertyDef(pd.OwnerPropertyDef);
     this.Predefined       = pd.Predefined;
     this.SortAscending    = pd.SortAscending;
     this.StaticFilter     = new SearchConditions();
     foreach (xSearchCondition searchCondition in pd.StaticFilter)
     {
         TestSearchCondition tsc = new TestSearchCondition(searchCondition);
         this.StaticFilter.Add(-1, tsc);
     }
     this.ThisIsConflictPD     = pd.ThisIsConflictPD;
     this.ThisIsDefaultPD      = pd.ThisIsDefaultPD;
     this.ThisIsOwnerPD        = pd.ThisIsOwnerPD;
     this.UpdateType           = (MFUpdateType)pd.UpdateType;
     this.ValueList            = pd.ValueList;
     this.ValueListSortingType = (MFValueListSortingType)pd.ValueListSortingType;
 }
        public SearchCondition Clone()
        {
            TestSearchCondition newSeachCondition = new TestSearchCondition
            {
                ConditionType = this.ConditionType,
                Expression    = this.Expression.Clone(),
                TypedValue    = this.TypedValue.Clone()
            };

            return(newSeachCondition);
        }