public TestObjectClass(TestObjectClassAdmin oClass) { AssociatedPropertyDefs = new TestAssociatedPropertyDefs(); foreach (AssociatedPropertyDef associatedPropertyDef in oClass.AssociatedPropertyDefs) { AssociatedPropertyDefs.Add(-1, associatedPropertyDef); } AutomaticPermissionsForObjects = oClass.AutomaticPermissionsForObjects; ForceWorkflow = oClass.ForceWorkflow; ID = oClass.ID; Name = oClass.Name; NamePropertyDef = oClass.NamePropertyDef; ObjectType = oClass.ObjectType; Workflow = oClass.Workflow; }
public TestObjectClassAdmin() { TestAssociatedPropertyDefs = new TestAssociatedPropertyDefs(); this.AssociatedPropertyDefs = new AssociatedPropertyDefs(); }