/// <summary>Performs the reset operation for the IsSourceImplementNotifyTracking property for a model element.</summary> /// <param name="element">The model element that has the property to reset.</param> internal void ResetValue(BidirectionalAssociation element) { object calculatedValue = null; try { calculatedValue = element.Source?.ImplementNotify; } catch (NullReferenceException) { } catch (Exception e) { if (CriticalException.IsCriticalException(e)) { throw; } } if (calculatedValue != null && element.SourceImplementNotify == (bool)calculatedValue) { element.isSourceImplementNotifyTrackingPropertyStorage = true; } }
/// <summary>Gets the storage for the ColumnType property.</summary> /// <returns>The ColumnType value.</returns> public string GetColumnTypeValue() { if (!this.IsLoading() && IsColumnTypeTracking) { try { return "default"; } catch (NullReferenceException) { return "default"; } catch (Exception e) { if (CriticalException.IsCriticalException(e)) throw; return "default"; } } return columnTypeStorage ?? "default"; }
/// <summary>Gets the storage for the PropertyAccessMode property.</summary> /// <returns>The AutoProperty value.</returns> public PropertyAccessMode GetPropertyAccessModeValue() { if (!this.IsLoading() && IsPropertyAccessModeTracking) { try { return ModelClass?.ModelRoot.PropertyAccessModeDefault ?? DefaultPropertyAccessMode; } catch (NullReferenceException) { return DefaultPropertyAccessMode; } catch (Exception e) { if (CriticalException.IsCriticalException(e)) throw; return DefaultPropertyAccessMode; } } return propertyAccessModeStorage; }
/// <summary>Gets the storage for the AutoProperty property.</summary> /// <returns>The AutoProperty value.</returns> public bool GetAutoPropertyValue() { if (!this.IsLoading() && IsAutoPropertyTracking) { try { return ModelClass?.AutoPropertyDefault ?? true; } catch (NullReferenceException) { return true; } catch (Exception e) { if (CriticalException.IsCriticalException(e)) throw; return true; } } return autoPropertyStorage; }
/// <summary>Gets the storage for the ImplementNotify property.</summary> /// <returns>The ImplementNotify value.</returns> public bool GetImplementNotifyValue() { if (!this.IsLoading() && IsImplementNotifyTracking) { try { return ModelClass?.ImplementNotify ?? false; } catch (NullReferenceException) { return false; } catch (Exception e) { if (CriticalException.IsCriticalException(e)) throw; return false; } } return implementNotifyStorage; }
/// <summary>Performs the reset operation for the IsDefaultConstructorVisibilityTracking property for a model element.</summary> /// <param name="element">The model element that has the property to reset.</param> internal void ResetValue(ModelClass element) { object calculatedValue = null; ModelRoot modelRoot = element.Store.ModelRoot(); try { calculatedValue = modelRoot?.EntityDefaultConstructorVisibilityDefault; } catch (NullReferenceException) { } catch (Exception e) { if (CriticalException.IsCriticalException(e)) { throw; } } if (calculatedValue != null && element.DefaultConstructorVisibility == (TypeAccessModifierExt)calculatedValue) { element.isDefaultConstructorVisibilityTrackingPropertyStorage = true; } }
/// <summary>Performs the reset operation for the IsDatabaseSchemaTracking property for a model element.</summary> /// <param name="element">The model element that has the property to reset.</param> internal void ResetValue(ModelClass element) { object calculatedValue = null; ModelRoot modelRoot = element.Store.ModelRoot(); try { calculatedValue = modelRoot?.DatabaseSchema; } catch (NullReferenceException) { } catch (Exception e) { if (CriticalException.IsCriticalException(e)) { throw; } } if (calculatedValue != null && element.DatabaseSchema == (string)calculatedValue) { element.isDatabaseSchemaTrackingPropertyStorage = true; } }
/// <summary>Performs the reset operation for the IsCollectionClassTracking property for a model element.</summary> /// <param name="element">The model element that has the property to reset.</param> internal void ResetValue(Association element) { object calculatedValue = null; try { ModelRoot modelRoot = element.Store.ModelRoot(); calculatedValue = modelRoot.DefaultCollectionClass; } catch (NullReferenceException) { } catch (Exception e) { if (CriticalException.IsCriticalException(e)) { throw; } } if (calculatedValue != null && element.CollectionClass == (string)calculatedValue) { element.isCollectionClassTrackingPropertyStorage = true; } }
/// <summary>Performs the reset operation for the IsOutputDirectoryTracking property for a model element.</summary> /// <param name="element">The model element that has the property to reset.</param> internal void ResetValue(ModelClass element) { object calculatedValue = null; ModelRoot modelRoot = element.Store.ModelRoot(); try { calculatedValue = element.IsDependentType ? modelRoot?.StructOutputDirectory : element.ModelRoot?.EntityOutputDirectory; } catch (NullReferenceException) { } catch (Exception e) { if (CriticalException.IsCriticalException(e)) { throw; } } if (calculatedValue != null && element.OutputDirectory == (string)calculatedValue) { element.isOutputDirectoryTrackingPropertyStorage = true; } }
/// <summary>Performs the reset operation for the IsNamespaceTracking property for a model element.</summary> /// <param name="element">The model element that has the property to reset.</param> internal void ResetValue(ModelEnum element) { object calculatedValue = null; ModelRoot modelRoot = element.Store.ModelRoot(); try { calculatedValue = modelRoot?.Namespace; } catch (NullReferenceException) { } catch (Exception e) { if (CriticalException.IsCriticalException(e)) { throw; } } if (calculatedValue != null && element.Namespace == (string)calculatedValue) { element.isNamespaceTrackingPropertyStorage = true; } }