/// <summary> Initializes the class members</summary> private void InitClassMembers() { _policyLink = new policyDB.CollectionClasses.PolicyLinkCollection(new PolicyLinkEntityFactory()); _policyLink.SetContainingEntityInfo(this, "Policy"); _alwaysFetchPolicyLink = false; _alreadyFetchedPolicyLink = false; _rule = new policyDB.CollectionClasses.RuleCollection(new RuleEntityFactory()); _rule.SetContainingEntityInfo(this, "Policy"); _alwaysFetchRule = false; _alreadyFetchedRule = false; _decisionNodeCollectionViaRule = new policyDB.CollectionClasses.DecisionNodeCollection(new DecisionNodeEntityFactory()); _alwaysFetchDecisionNodeCollectionViaRule = false; _alreadyFetchedDecisionNodeCollectionViaRule = false; _effectCollectionViaRule = new policyDB.CollectionClasses.EffectCollection(new EffectEntityFactory()); _alwaysFetchEffectCollectionViaRule = false; _alreadyFetchedEffectCollectionViaRule = false; _policyLinkCollectionViaPolicyLink = new policyDB.CollectionClasses.PolicyLinkCollection(new PolicyLinkEntityFactory()); _alwaysFetchPolicyLinkCollectionViaPolicyLink = false; _alreadyFetchedPolicyLinkCollectionViaPolicyLink = false; _combineMode = null; _combineModeReturnsNewIfNotFound = true; _alwaysFetchCombineMode = false; _alreadyFetchedCombineMode = false; _library = null; _libraryReturnsNewIfNotFound = true; _alwaysFetchLibrary = false; _alreadyFetchedLibrary = false; _target = null; _targetReturnsNewIfNotFound = true; _alwaysFetchTarget = false; _alreadyFetchedTarget = false; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
/// <summary> Initializes the class members</summary> private void InitClassMembers() { _policy = new policyDB.CollectionClasses.PolicyCollection(new PolicyEntityFactory()); _policy.SetContainingEntityInfo(this, "Target"); _alwaysFetchPolicy = false; _alreadyFetchedPolicy = false; _targetCondition = new policyDB.CollectionClasses.TargetConditionCollection(new TargetConditionEntityFactory()); _targetCondition.SetContainingEntityInfo(this, "Target"); _alwaysFetchTargetCondition = false; _alreadyFetchedTargetCondition = false; _combineModeCollectionViaPolicy = new policyDB.CollectionClasses.CombineModeCollection(new CombineModeEntityFactory()); _alwaysFetchCombineModeCollectionViaPolicy = false; _alreadyFetchedCombineModeCollectionViaPolicy = false; _conditionCollectionViaTargetCondition = new policyDB.CollectionClasses.DecisionNodeCollection(new DecisionNodeEntityFactory()); _alwaysFetchConditionCollectionViaTargetCondition = false; _alreadyFetchedConditionCollectionViaTargetCondition = false; _libraryCollectionViaPolicy = new policyDB.CollectionClasses.LibraryCollection(new LibraryEntityFactory()); _alwaysFetchLibraryCollectionViaPolicy = false; _alreadyFetchedLibraryCollectionViaPolicy = false; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
/// <summary>Private CTor for deserialization</summary> /// <param name="info"></param> /// <param name="context"></param> protected PolicyEntity(SerializationInfo info, StreamingContext context) : base(info, context) { _policyLink = (policyDB.CollectionClasses.PolicyLinkCollection)info.GetValue("_policyLink", typeof(policyDB.CollectionClasses.PolicyLinkCollection)); _alwaysFetchPolicyLink = info.GetBoolean("_alwaysFetchPolicyLink"); _alreadyFetchedPolicyLink = info.GetBoolean("_alreadyFetchedPolicyLink"); _rule = (policyDB.CollectionClasses.RuleCollection)info.GetValue("_rule", typeof(policyDB.CollectionClasses.RuleCollection)); _alwaysFetchRule = info.GetBoolean("_alwaysFetchRule"); _alreadyFetchedRule = info.GetBoolean("_alreadyFetchedRule"); _decisionNodeCollectionViaRule = (policyDB.CollectionClasses.DecisionNodeCollection)info.GetValue("_decisionNodeCollectionViaRule", typeof(policyDB.CollectionClasses.DecisionNodeCollection)); _alwaysFetchDecisionNodeCollectionViaRule = info.GetBoolean("_alwaysFetchDecisionNodeCollectionViaRule"); _alreadyFetchedDecisionNodeCollectionViaRule = info.GetBoolean("_alreadyFetchedDecisionNodeCollectionViaRule"); _effectCollectionViaRule = (policyDB.CollectionClasses.EffectCollection)info.GetValue("_effectCollectionViaRule", typeof(policyDB.CollectionClasses.EffectCollection)); _alwaysFetchEffectCollectionViaRule = info.GetBoolean("_alwaysFetchEffectCollectionViaRule"); _alreadyFetchedEffectCollectionViaRule = info.GetBoolean("_alreadyFetchedEffectCollectionViaRule"); _policyLinkCollectionViaPolicyLink = (policyDB.CollectionClasses.PolicyLinkCollection)info.GetValue("_policyLinkCollectionViaPolicyLink", typeof(policyDB.CollectionClasses.PolicyLinkCollection)); _alwaysFetchPolicyLinkCollectionViaPolicyLink = info.GetBoolean("_alwaysFetchPolicyLinkCollectionViaPolicyLink"); _alreadyFetchedPolicyLinkCollectionViaPolicyLink = info.GetBoolean("_alreadyFetchedPolicyLinkCollectionViaPolicyLink"); _combineMode = (CombineModeEntity)info.GetValue("_combineMode", typeof(CombineModeEntity)); if(_combineMode!=null) { _combineMode.AfterSave+=new EventHandler(OnEntityAfterSave); } _combineModeReturnsNewIfNotFound = info.GetBoolean("_combineModeReturnsNewIfNotFound"); _alwaysFetchCombineMode = info.GetBoolean("_alwaysFetchCombineMode"); _alreadyFetchedCombineMode = info.GetBoolean("_alreadyFetchedCombineMode"); _library = (LibraryEntity)info.GetValue("_library", typeof(LibraryEntity)); if(_library!=null) { _library.AfterSave+=new EventHandler(OnEntityAfterSave); } _libraryReturnsNewIfNotFound = info.GetBoolean("_libraryReturnsNewIfNotFound"); _alwaysFetchLibrary = info.GetBoolean("_alwaysFetchLibrary"); _alreadyFetchedLibrary = info.GetBoolean("_alreadyFetchedLibrary"); _target = (TargetEntity)info.GetValue("_target", typeof(TargetEntity)); if(_target!=null) { _target.AfterSave+=new EventHandler(OnEntityAfterSave); } _targetReturnsNewIfNotFound = info.GetBoolean("_targetReturnsNewIfNotFound"); _alwaysFetchTarget = info.GetBoolean("_alwaysFetchTarget"); _alreadyFetchedTarget = info.GetBoolean("_alreadyFetchedTarget"); base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance()); // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary>Private CTor for deserialization</summary> /// <param name="info"></param> /// <param name="context"></param> protected TargetEntity(SerializationInfo info, StreamingContext context) : base(info, context) { _policy = (policyDB.CollectionClasses.PolicyCollection)info.GetValue("_policy", typeof(policyDB.CollectionClasses.PolicyCollection)); _alwaysFetchPolicy = info.GetBoolean("_alwaysFetchPolicy"); _alreadyFetchedPolicy = info.GetBoolean("_alreadyFetchedPolicy"); _targetCondition = (policyDB.CollectionClasses.TargetConditionCollection)info.GetValue("_targetCondition", typeof(policyDB.CollectionClasses.TargetConditionCollection)); _alwaysFetchTargetCondition = info.GetBoolean("_alwaysFetchTargetCondition"); _alreadyFetchedTargetCondition = info.GetBoolean("_alreadyFetchedTargetCondition"); _combineModeCollectionViaPolicy = (policyDB.CollectionClasses.CombineModeCollection)info.GetValue("_combineModeCollectionViaPolicy", typeof(policyDB.CollectionClasses.CombineModeCollection)); _alwaysFetchCombineModeCollectionViaPolicy = info.GetBoolean("_alwaysFetchCombineModeCollectionViaPolicy"); _alreadyFetchedCombineModeCollectionViaPolicy = info.GetBoolean("_alreadyFetchedCombineModeCollectionViaPolicy"); _conditionCollectionViaTargetCondition = (policyDB.CollectionClasses.DecisionNodeCollection)info.GetValue("_conditionCollectionViaTargetCondition", typeof(policyDB.CollectionClasses.DecisionNodeCollection)); _alwaysFetchConditionCollectionViaTargetCondition = info.GetBoolean("_alwaysFetchConditionCollectionViaTargetCondition"); _alreadyFetchedConditionCollectionViaTargetCondition = info.GetBoolean("_alreadyFetchedConditionCollectionViaTargetCondition"); _libraryCollectionViaPolicy = (policyDB.CollectionClasses.LibraryCollection)info.GetValue("_libraryCollectionViaPolicy", typeof(policyDB.CollectionClasses.LibraryCollection)); _alwaysFetchLibraryCollectionViaPolicy = info.GetBoolean("_alwaysFetchLibraryCollectionViaPolicy"); _alreadyFetchedLibraryCollectionViaPolicy = info.GetBoolean("_alreadyFetchedLibraryCollectionViaPolicy"); base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance()); // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> Initializes the class members</summary> private void InitClassMembers() { _attributeValue = new policyDB.CollectionClasses.AttributeValueCollection(new AttributeValueEntityFactory()); _attributeValue.SetContainingEntityInfo(this, "Attribute"); _alwaysFetchAttributeValue = false; _alreadyFetchedAttributeValue = false; _decisionNode = new policyDB.CollectionClasses.DecisionNodeCollection(new DecisionNodeEntityFactory()); _decisionNode.SetContainingEntityInfo(this, "Attribute"); _alwaysFetchDecisionNode = false; _alreadyFetchedDecisionNode = false; _queryValue = new policyDB.CollectionClasses.QueryValueCollection(new QueryValueEntityFactory()); _queryValue.SetContainingEntityInfo(this, "Attribute"); _alwaysFetchQueryValue = false; _alreadyFetchedQueryValue = false; _decisionNodeCollectionViaDecisionNode = new policyDB.CollectionClasses.DecisionNodeCollection(new DecisionNodeEntityFactory()); _alwaysFetchDecisionNodeCollectionViaDecisionNode = false; _alreadyFetchedDecisionNodeCollectionViaDecisionNode = false; _decisionNodeCollectionViaAttributeValue = new policyDB.CollectionClasses.DecisionNodeCollection(new DecisionNodeEntityFactory()); _alwaysFetchDecisionNodeCollectionViaAttributeValue = false; _alreadyFetchedDecisionNodeCollectionViaAttributeValue = false; _queryCollectionViaQueryValue = new policyDB.CollectionClasses.QueryCollection(new QueryEntityFactory()); _alwaysFetchQueryCollectionViaQueryValue = false; _alreadyFetchedQueryCollectionViaQueryValue = false; _attributeType = null; _attributeTypeReturnsNewIfNotFound = true; _alwaysFetchAttributeType = false; _alreadyFetchedAttributeType = false; _context = null; _contextReturnsNewIfNotFound = true; _alwaysFetchContext = false; _alreadyFetchedContext = false; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
/// <summary>Private CTor for deserialization</summary> /// <param name="info"></param> /// <param name="context"></param> protected AttributeEntity(SerializationInfo info, StreamingContext context) : base(info, context) { _attributeValue = (policyDB.CollectionClasses.AttributeValueCollection)info.GetValue("_attributeValue", typeof(policyDB.CollectionClasses.AttributeValueCollection)); _alwaysFetchAttributeValue = info.GetBoolean("_alwaysFetchAttributeValue"); _alreadyFetchedAttributeValue = info.GetBoolean("_alreadyFetchedAttributeValue"); _decisionNode = (policyDB.CollectionClasses.DecisionNodeCollection)info.GetValue("_decisionNode", typeof(policyDB.CollectionClasses.DecisionNodeCollection)); _alwaysFetchDecisionNode = info.GetBoolean("_alwaysFetchDecisionNode"); _alreadyFetchedDecisionNode = info.GetBoolean("_alreadyFetchedDecisionNode"); _queryValue = (policyDB.CollectionClasses.QueryValueCollection)info.GetValue("_queryValue", typeof(policyDB.CollectionClasses.QueryValueCollection)); _alwaysFetchQueryValue = info.GetBoolean("_alwaysFetchQueryValue"); _alreadyFetchedQueryValue = info.GetBoolean("_alreadyFetchedQueryValue"); _decisionNodeCollectionViaDecisionNode = (policyDB.CollectionClasses.DecisionNodeCollection)info.GetValue("_decisionNodeCollectionViaDecisionNode", typeof(policyDB.CollectionClasses.DecisionNodeCollection)); _alwaysFetchDecisionNodeCollectionViaDecisionNode = info.GetBoolean("_alwaysFetchDecisionNodeCollectionViaDecisionNode"); _alreadyFetchedDecisionNodeCollectionViaDecisionNode = info.GetBoolean("_alreadyFetchedDecisionNodeCollectionViaDecisionNode"); _decisionNodeCollectionViaAttributeValue = (policyDB.CollectionClasses.DecisionNodeCollection)info.GetValue("_decisionNodeCollectionViaAttributeValue", typeof(policyDB.CollectionClasses.DecisionNodeCollection)); _alwaysFetchDecisionNodeCollectionViaAttributeValue = info.GetBoolean("_alwaysFetchDecisionNodeCollectionViaAttributeValue"); _alreadyFetchedDecisionNodeCollectionViaAttributeValue = info.GetBoolean("_alreadyFetchedDecisionNodeCollectionViaAttributeValue"); _queryCollectionViaQueryValue = (policyDB.CollectionClasses.QueryCollection)info.GetValue("_queryCollectionViaQueryValue", typeof(policyDB.CollectionClasses.QueryCollection)); _alwaysFetchQueryCollectionViaQueryValue = info.GetBoolean("_alwaysFetchQueryCollectionViaQueryValue"); _alreadyFetchedQueryCollectionViaQueryValue = info.GetBoolean("_alreadyFetchedQueryCollectionViaQueryValue"); _attributeType = (AttributeTypeEntity)info.GetValue("_attributeType", typeof(AttributeTypeEntity)); if(_attributeType!=null) { _attributeType.AfterSave+=new EventHandler(OnEntityAfterSave); } _attributeTypeReturnsNewIfNotFound = info.GetBoolean("_attributeTypeReturnsNewIfNotFound"); _alwaysFetchAttributeType = info.GetBoolean("_alwaysFetchAttributeType"); _alreadyFetchedAttributeType = info.GetBoolean("_alreadyFetchedAttributeType"); _context = (ContextEntity)info.GetValue("_context", typeof(ContextEntity)); if(_context!=null) { _context.AfterSave+=new EventHandler(OnEntityAfterSave); } _contextReturnsNewIfNotFound = info.GetBoolean("_contextReturnsNewIfNotFound"); _alwaysFetchContext = info.GetBoolean("_alwaysFetchContext"); _alreadyFetchedContext = info.GetBoolean("_alreadyFetchedContext"); base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance()); // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }
/// <summary> Initializes the class members</summary> private void InitClassMembers() { _attributeValue = new policyDB.CollectionClasses.AttributeValueCollection(new AttributeValueEntityFactory()); _attributeValue.SetContainingEntityInfo(this, "AttributeMatch"); _alwaysFetchAttributeValue = false; _alreadyFetchedAttributeValue = false; _children = new policyDB.CollectionClasses.DecisionNodeCollection(new DecisionNodeEntityFactory()); _children.SetContainingEntityInfo(this, "Parent"); _alwaysFetchChildren = false; _alreadyFetchedChildren = false; _rule = new policyDB.CollectionClasses.RuleCollection(new RuleEntityFactory()); _rule.SetContainingEntityInfo(this, "Condition"); _alwaysFetchRule = false; _alreadyFetchedRule = false; _targetCondition = new policyDB.CollectionClasses.TargetConditionCollection(new TargetConditionEntityFactory()); _targetCondition.SetContainingEntityInfo(this, "DecisionNode"); _alwaysFetchTargetCondition = false; _alreadyFetchedTargetCondition = false; _attributeCollectionViaDecisionNode = new policyDB.CollectionClasses.AttributeCollection(new AttributeEntityFactory()); _alwaysFetchAttributeCollectionViaDecisionNode = false; _alreadyFetchedAttributeCollectionViaDecisionNode = false; _attributeCollectionViaAttributeValue = new policyDB.CollectionClasses.AttributeCollection(new AttributeEntityFactory()); _alwaysFetchAttributeCollectionViaAttributeValue = false; _alreadyFetchedAttributeCollectionViaAttributeValue = false; _effectCollectionViaRule = new policyDB.CollectionClasses.EffectCollection(new EffectEntityFactory()); _alwaysFetchEffectCollectionViaRule = false; _alreadyFetchedEffectCollectionViaRule = false; _policyCollectionViaRule = new policyDB.CollectionClasses.PolicyCollection(new PolicyEntityFactory()); _alwaysFetchPolicyCollectionViaRule = false; _alreadyFetchedPolicyCollectionViaRule = false; _targetCollectionViaTargetCondition = new policyDB.CollectionClasses.TargetCollection(new TargetEntityFactory()); _alwaysFetchTargetCollectionViaTargetCondition = false; _alreadyFetchedTargetCollectionViaTargetCondition = false; _attribute = null; _attributeReturnsNewIfNotFound = true; _alwaysFetchAttribute = false; _alreadyFetchedAttribute = false; _parent = null; _parentReturnsNewIfNotFound = true; _alwaysFetchParent = false; _alreadyFetchedParent = false; PerformDependencyInjection(); // __LLBLGENPRO_USER_CODE_REGION_START InitClassMembers // __LLBLGENPRO_USER_CODE_REGION_END OnInitClassMembersComplete(); }
/// <summary>Private CTor for deserialization</summary> /// <param name="info"></param> /// <param name="context"></param> protected DecisionNodeEntity(SerializationInfo info, StreamingContext context) : base(info, context) { _attributeValue = (policyDB.CollectionClasses.AttributeValueCollection)info.GetValue("_attributeValue", typeof(policyDB.CollectionClasses.AttributeValueCollection)); _alwaysFetchAttributeValue = info.GetBoolean("_alwaysFetchAttributeValue"); _alreadyFetchedAttributeValue = info.GetBoolean("_alreadyFetchedAttributeValue"); _children = (policyDB.CollectionClasses.DecisionNodeCollection)info.GetValue("_children", typeof(policyDB.CollectionClasses.DecisionNodeCollection)); _alwaysFetchChildren = info.GetBoolean("_alwaysFetchChildren"); _alreadyFetchedChildren = info.GetBoolean("_alreadyFetchedChildren"); _rule = (policyDB.CollectionClasses.RuleCollection)info.GetValue("_rule", typeof(policyDB.CollectionClasses.RuleCollection)); _alwaysFetchRule = info.GetBoolean("_alwaysFetchRule"); _alreadyFetchedRule = info.GetBoolean("_alreadyFetchedRule"); _targetCondition = (policyDB.CollectionClasses.TargetConditionCollection)info.GetValue("_targetCondition", typeof(policyDB.CollectionClasses.TargetConditionCollection)); _alwaysFetchTargetCondition = info.GetBoolean("_alwaysFetchTargetCondition"); _alreadyFetchedTargetCondition = info.GetBoolean("_alreadyFetchedTargetCondition"); _attributeCollectionViaDecisionNode = (policyDB.CollectionClasses.AttributeCollection)info.GetValue("_attributeCollectionViaDecisionNode", typeof(policyDB.CollectionClasses.AttributeCollection)); _alwaysFetchAttributeCollectionViaDecisionNode = info.GetBoolean("_alwaysFetchAttributeCollectionViaDecisionNode"); _alreadyFetchedAttributeCollectionViaDecisionNode = info.GetBoolean("_alreadyFetchedAttributeCollectionViaDecisionNode"); _attributeCollectionViaAttributeValue = (policyDB.CollectionClasses.AttributeCollection)info.GetValue("_attributeCollectionViaAttributeValue", typeof(policyDB.CollectionClasses.AttributeCollection)); _alwaysFetchAttributeCollectionViaAttributeValue = info.GetBoolean("_alwaysFetchAttributeCollectionViaAttributeValue"); _alreadyFetchedAttributeCollectionViaAttributeValue = info.GetBoolean("_alreadyFetchedAttributeCollectionViaAttributeValue"); _effectCollectionViaRule = (policyDB.CollectionClasses.EffectCollection)info.GetValue("_effectCollectionViaRule", typeof(policyDB.CollectionClasses.EffectCollection)); _alwaysFetchEffectCollectionViaRule = info.GetBoolean("_alwaysFetchEffectCollectionViaRule"); _alreadyFetchedEffectCollectionViaRule = info.GetBoolean("_alreadyFetchedEffectCollectionViaRule"); _policyCollectionViaRule = (policyDB.CollectionClasses.PolicyCollection)info.GetValue("_policyCollectionViaRule", typeof(policyDB.CollectionClasses.PolicyCollection)); _alwaysFetchPolicyCollectionViaRule = info.GetBoolean("_alwaysFetchPolicyCollectionViaRule"); _alreadyFetchedPolicyCollectionViaRule = info.GetBoolean("_alreadyFetchedPolicyCollectionViaRule"); _targetCollectionViaTargetCondition = (policyDB.CollectionClasses.TargetCollection)info.GetValue("_targetCollectionViaTargetCondition", typeof(policyDB.CollectionClasses.TargetCollection)); _alwaysFetchTargetCollectionViaTargetCondition = info.GetBoolean("_alwaysFetchTargetCollectionViaTargetCondition"); _alreadyFetchedTargetCollectionViaTargetCondition = info.GetBoolean("_alreadyFetchedTargetCollectionViaTargetCondition"); _attribute = (AttributeEntity)info.GetValue("_attribute", typeof(AttributeEntity)); if(_attribute!=null) { _attribute.AfterSave+=new EventHandler(OnEntityAfterSave); } _attributeReturnsNewIfNotFound = info.GetBoolean("_attributeReturnsNewIfNotFound"); _alwaysFetchAttribute = info.GetBoolean("_alwaysFetchAttribute"); _alreadyFetchedAttribute = info.GetBoolean("_alreadyFetchedAttribute"); _parent = (DecisionNodeEntity)info.GetValue("_parent", typeof(DecisionNodeEntity)); if(_parent!=null) { _parent.AfterSave+=new EventHandler(OnEntityAfterSave); } _parentReturnsNewIfNotFound = info.GetBoolean("_parentReturnsNewIfNotFound"); _alwaysFetchParent = info.GetBoolean("_alwaysFetchParent"); _alreadyFetchedParent = info.GetBoolean("_alreadyFetchedParent"); base.FixupDeserialization(FieldInfoProviderSingleton.GetInstance(), PersistenceInfoProviderSingleton.GetInstance()); // __LLBLGENPRO_USER_CODE_REGION_START DeserializationConstructor // __LLBLGENPRO_USER_CODE_REGION_END }