Click or drag to resize

DerivedModelDefinition Class

Class which defines a derived model, and which contains documentdefinitions which together form the derived model.
Inheritance Hierarchy
SystemObject
  System.Collections.ObjectModelCollectionRootDocumentDefinition
    SD.Tools.Algorithmia.GeneralDataStructuresCommandifiedListRootDocumentDefinition
      SD.LLBLGen.Pro.ApplicationCore.DerivedModelDocumentDefinitionListRootDocumentDefinition
        SD.LLBLGen.Pro.ApplicationCore.DerivedModelDerivedModelDefinition

Namespace:  SD.LLBLGen.Pro.ApplicationCore.DerivedModel
Assembly:  SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.9.0.0 (5.9.0)
Syntax
[FilterPropertiesAttribute]
public class DerivedModelDefinition : DocumentDefinitionList<RootDocumentDefinition>, 
	INotifyPropertyChanged, INotifyAsChanged, INotifyAsRemoved, IDataErrorInfo, ITargetFrameworkHolder, 
	IOutputSettingValuesTarget

The DerivedModelDefinition type exposes the following members.

Constructors
  NameDescription
Public methodDerivedModelDefinition
Initializes a new instance of the DerivedModelDefinition class.
Top
Properties
  NameDescription
Public propertyAdditionalCycleTaskPreferences
Gets the cycle task preferences for the additional tasks for this derived model
Public propertyAllowEdit
Gets whether you can update items in the list.
(Inherited from CommandifiedListT.)
Public propertyAllowNew (Inherited from CommandifiedListT.)
Public propertyAllowRemove
Gets whether you can remove items from the list, using Remove(Object) or RemoveAt(Int32).
(Inherited from CommandifiedListT.)
Public propertyCount (Inherited from CollectionRootDocumentDefinition.)
Protected propertyDeserializing (Inherited from DocumentDefinitionListT.)
Public propertyHolderDescription
Gets the holder description for text messages to the user.
Public propertyIsSorted
Gets whether the items in the list are sorted.
(Inherited from CommandifiedListT.)
Public propertyIsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe). Default: false. Set to true in the ctor to make sure the operations on this object are using locks. Use SyncRoot to lock on the same object as this class' internal operations.
(Inherited from CommandifiedListT.)
Public propertyItem
Gets or sets the instance at the specified index. This is a redefinition, so the get can be synchronized if needed.
(Inherited from CommandifiedListT.)
Protected propertyItems (Inherited from CollectionRootDocumentDefinition.)
Public propertyLastUsedNormalCodeGenerationCyclePreferences
Gets the last used code generation cycle preferences or null if no code has been generated so far.
Public propertyModelType
The model type this framework holder is interested in.
Public propertyName
Gets or sets the name of the derived model definition.
Public propertyObjectID
Gets the object identifier.
Public propertyOutputSettingValues
Gets / sets the output setting values defined on the target framework holder. Used for determining defaults.
Public propertySettings
Gets the settings defined for this derived model definition. This object doesn't contain code generation settings nor framework specific settings.
Public propertySettingsHaveBeenChanged
Flag which signals a setting has changed, so the project should be flagged as changed too.
Public propertySortDirection
Gets the direction of the sort.
(Inherited from CommandifiedListT.)
Public propertySortProperty
Gets the PropertyDescriptor that is being used for sorting.
(Inherited from CommandifiedListT.)
Public propertySupportsChangeNotification
Gets whether a ListChanged event is raised when the list changes or an item in the list changes.
(Inherited from CommandifiedListT.)
Public propertySupportsSearching
Gets whether the list supports searching using the Find(PropertyDescriptor, Object) method.
(Inherited from CommandifiedListT.)
Public propertySupportsSorting
Gets whether the list supports sorting.
(Inherited from CommandifiedListT.)
Public propertySuppressEvents
Gets or sets a value indicating whether events are blocked from being raised (true) or not (false, default)
(Inherited from CommandifiedListT.)
Public propertySyncRoot
Gets an object that can be used to synchronize access to the ICollection. It's the same object used in locks inside this object.
(Inherited from CommandifiedListT.)
Public propertyTargetElementType
Gets the target element type of this target.
Public propertyTargetFrameworkName
Gets the name of the target framework for this derived model definition.
Public propertyUseLegacyDefaults
Gets a value indicating whether legacy defaults (true, default) should be used for SettingDefinitions or not (false). Set to false when SetTargetFramework is called.
Protected propertyXmlElementName
Gets or sets the name of the XML element of this object.
(Overrides DocumentDefinitionListTXmlElementName.)
Top
Methods
  NameDescription
Public methodAdd (Inherited from CollectionRootDocumentDefinition.)
Public methodAddIndex
Adds the PropertyDescriptor to the indexes used for searching.
(Inherited from CommandifiedListT.)
Public methodAddNew
Adds a new item to the list.
(Inherited from CommandifiedListT.)
Public methodAddRange
Adds the elements in the range specified to this list in one command
(Inherited from CommandifiedListT.)
Public methodApplySort
Sorts the list based on a PropertyDescriptor and a ListSortDirection.
(Inherited from CommandifiedListT.)
Protected methodBindAdditionalEvents
Binds the additional event handlers of contained elements in derived classes.
(Overrides DocumentDefinitionListTBindAdditionalEvents.)
Public methodClear (Inherited from CollectionRootDocumentDefinition.)
Protected methodClearItems (Inherited from CommandifiedListT.)
Public methodContains (Inherited from CollectionRootDocumentDefinition.)
Public methodCopyTo (Inherited from CollectionRootDocumentDefinition.)
Public methodCreateNewRootDocument
Creates a new root document and adds it to this model
Protected methodDeserializeAdditionalAttributes
Deserializes the additional attributes of this class from the xml pointed at by the reader, which is at the startelement of this object.
(Overrides DocumentDefinitionListTDeserializeAdditionalAttributes(XmlReader).)
Protected methodDeserializeAdditionalElements
Deserializes the additional elements from the reader. The reader will be placed on an element that's not recognized by the deserializer of this class.
(Overrides DocumentDefinitionListTDeserializeAdditionalElements(XmlReader, Project, ReferencedElement).)
Public methodDeserializeFromReader
Deserializes the data for this DerivedModelDefinition from the xml reader passed in. The reader is assumed to be at the start element of the DerivedModelDefinition
(Inherited from DocumentDefinitionListT.)
Public methodDeserializeSettingContentsFromImport
Deserializes the setting contents from import, which are serialized using SerializeSettingContentsForImport.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFind
Returns the index of the row that has the given PropertyDescriptor.
(Inherited from CommandifiedListT.)
Public methodGetAdditionalInterfaces
Gets the additional interfaces, if applicable, for this element, where the default interfaces are prefiltered with the ignored interfaces defined in this element. All interface macros are replaced with real names.
Public methodGetAdditionalNamespaces
Gets the additional namespaces, if applicable, for this element, where the default namespaces are prefiltered with the ignored namespaces defined in this element. All namespace macros are replaced with real names.
Public methodGetAttributes
Gets the attributes, if applicable, for this element, where the default attributes are prefiltered with the ignored attributes defined in this element. All name macros and $length/$precision/$scale macros are replaced with real values. (if applicable)
Public methodGetDefaultsForTargetElementType
Gets the defaults for attributes/additional interfaces/namespaces for the targetelement specified, or null if not found
Public methodGetDefaultsPerTargetElementTypeClone
Gets the defaults per target element type store as a clone for editing with cancel option.
Public methodGetEnumerator (Inherited from CollectionRootDocumentDefinition.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetLastUsedCodeGenerationCyclePreferencesForOutput
Gets the last used code generation cycle preferences for the output type SourceCode, or a new one if no code generation has taken place yet.
Protected methodGetOrderedEquivalent
Gets the ordered equivalent of this list. Needed for persistence.
(Overrides DocumentDefinitionListTGetOrderedEquivalent.)
Public methodGetOutputSettingValuesFilteredForTargetElementType
Gets the output setting values for the target element type specified, including the default values inherited from the project, filtered with the ignored values.
Public methodGetRealBoolSettingValue
Gets the real setting value of the setting with the name specified as bool
Public methodGetRealIntSettingValue
Gets the real setting value of the setting with the name specified as int
Public methodGetRealSettingValue
Gets the real setting value of the setting with the name specified
Public methodGetRealStringSettingValue
Gets the real setting value of the setting with the name specified as string
Public methodGetRealStringSettingValueWithMacrosResolved
Gets the real setting value of the setting with the name specified as string. Also resolves any macros defined in the value (if any) to real values.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf (Inherited from CollectionRootDocumentDefinition.)
Public methodInsert (Inherited from CollectionRootDocumentDefinition.)
Protected methodInsertItem (Inherited from CommandifiedListT.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodMoveElement
Moves the element at index currentIndex to the indexToMoveTo index.
(Inherited from CommandifiedListT.)
Protected methodNotifyChange
Notifies a list change to observers with the parameters passed in.
(Inherited from CommandifiedListT.)
Protected methodOnAddingItem
Called right before the item passed in is about to be added to this list. Use this method to do event handler housekeeping on elements in this list.
(Inherited from DocumentDefinitionListT.)
Protected methodOnAddingItemComplete
Called right after the item passed in has been added to the list
(Overrides CommandifiedListTOnAddingItemComplete(T).)
Protected methodOnClearing
Called right before the clear action starts. Use this method to do event handler housekeeping on elements in this list.
(Inherited from DocumentDefinitionListT.)
Protected methodOnClearingComplete
Called right after the clear action has been completed.
(Overrides CommandifiedListTOnClearingComplete.)
Protected methodOnElementPropertyChanged
Called when the PropertyChanged event was raised by an element in this list.
(Inherited from CommandifiedListT.)
Protected methodOnRemovingItem
Called right before the item passed in is about to be removed from this list. Use this method to do event handler housekeeping on elements in this list.
(Inherited from DocumentDefinitionListT.)
Protected methodOnRemovingItemComplete
Called right after the item passed in has been removed from this list.
(Overrides CommandifiedListTOnRemovingItemComplete(T).)
Protected methodPerformCleanupOnRemovedItem
performs tasks on the item which has been removed from this list.
(Overrides DocumentDefinitionListTPerformCleanupOnRemovedItem(T).)
Protected methodPerformSetupOnAddedItem
Performs the setup tasks on the item which has been added to this list.
(Overrides DocumentDefinitionListTPerformSetupOnAddedItem(T).)
Protected methodPerformSyncedAction(Action)
Performs the specified action, either inside a lock on SyncRoot if this list is Synchronized, or normally, if this list isn't synchronized.
(Inherited from CommandifiedListT.)
Protected methodPerformSyncedActionTFunc(FuncTFunc)
Performs the specified action, either inside a lock on SyncRoot if this list is Synchronized, or normally, if this list isn't synchronized.
(Inherited from CommandifiedListT.)
Public methodRemove (Inherited from CollectionRootDocumentDefinition.)
Public methodRemoveAt (Inherited from CollectionRootDocumentDefinition.)
Public methodRemoveIndex
Removes the PropertyDescriptor from the indexes used for searching.
(Inherited from CommandifiedListT.)
Protected methodRemoveItem (Inherited from CommandifiedListT.)
Public methodRemoveSort
Removes any sort applied using ApplySort(PropertyDescriptor, ListSortDirection).
(Inherited from CommandifiedListT.)
Public methodResetBindings
Resets the bindings. Raises a ListChanged.Reset event
(Inherited from CommandifiedListT.)
Protected methodSerializeAdditionalAttributes
Serializes the additional attributes of this class to the start element.
(Overrides DocumentDefinitionListTSerializeAdditionalAttributes(ISerializer).)
Protected methodSerializeAdditionalElements
Serializes the additional elements inside the containing element of this class
(Overrides DocumentDefinitionListTSerializeAdditionalElements(ISerializer).)
Public methodSerializeSettingContentsForImport
Serializes the setting contents for import to the serializer's writer.
Public methodSerializeToWriter
Serializes the data in this class to the serializer passed in
(Inherited from DocumentDefinitionListT.)
Protected methodSetItem
Replaces the element at the specified index.
(Inherited from CommandifiedListT.)
Public methodSetNewOutputSettingValuesContainer
Sets the new output setting values container in this frameworkholder.
Public methodSetTargetFramework
Sets the target framework for this project
Public methodToString
Returns a String that represents the current Object.
(Inherited from CommandifiedListT.)
Protected methodUnbindAdditionalEvents
Unbinds the additional event handlers of contained elements in derived classes
(Overrides DocumentDefinitionListTUnbindAdditionalEvents.)
Top
Events
  NameDescription
Public eventDefaultsPerTargetElementTypeChanged
Raised when the defaults for target elements have been changed through property edits.
Public eventDerivedModelDefinitionChanged
Event which is raised when the definition of this DerivedModelDefinition has been changed. What has changed is enclosed inside the event args.
Public eventElementAdding
Raised when an element is about to be added. The addition of the element can be cancelled through the event arguments.
(Inherited from CommandifiedListT.)
Public eventElementRemoved
Raised when an element was removed from this list. The element removed is contained in the event arguments. This event is necessary to be able to retrieve a removed element after it was removed from the list by an observer, as ListChanged only contains indexes, and the index of a removed element isn't valid after it's been removed from the list.
(Inherited from CommandifiedListT.)
Public eventElementRemoving
Raised when an element is about to be removed. The removal of the element can be cancelled through the event arguments.
(Inherited from CommandifiedListT.)
Public eventHasBeenChanged
Raised when the implementing element has been changed
Public eventHasBeenRemoved
Raised when the implementing element has been removed from its container
Public eventListChanged
Occurs when the list changes or an item in the list changes.
(Inherited from CommandifiedListT.)
Public eventListClearing
Raised when this list is about to be cleared completely. The clearing of the list can be cancelled through the event arguments.
(Inherited from CommandifiedListT.)
Public eventPropertyChanged
Occurs when a property value changes. (INotifyPropertyChanged)
Public eventRootDocumentInModelChanged
Event which is raised when a root document in this DerivedModelDefinition has been changed, added or removed. The root document involved is enclosed inside the event args.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate propertyIDataErrorInfoError
Gets an error message indicating what is wrong with this object.
Explicit interface implementationPrivate propertyIDataErrorInfoItem
Gets the String with the specified column name.
Explicit interface implementationPrivate methodIListAdd
Adds an item to the IList.
(Inherited from CollectionRootDocumentDefinition.)
Explicit interface implementationPrivate methodIListContains
Determines whether the IList contains a specific value.
(Inherited from CollectionRootDocumentDefinition.)
Explicit interface implementationPrivate methodICollectionCopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
(Inherited from CollectionRootDocumentDefinition.)
Explicit interface implementationPrivate methodIEnumerableGetEnumerator
Returns an enumerator that iterates through a collection.
(Inherited from CollectionRootDocumentDefinition.)
Explicit interface implementationPrivate methodIListIndexOf
Determines the index of a specific item in the IList.
(Inherited from CollectionRootDocumentDefinition.)
Explicit interface implementationPrivate methodIListInsert
Inserts an item into the IList at the specified index.
(Inherited from CollectionRootDocumentDefinition.)
Explicit interface implementationPrivate propertyIOutputSettingValuesTargetTargetName
Gets the name of the element.
Explicit interface implementationPrivate propertyIListIsFixedSize
Gets a value indicating whether the IList has a fixed size.
(Inherited from CollectionRootDocumentDefinition.)
Explicit interface implementationPrivate propertyICollectionTIsReadOnly (Inherited from CollectionRootDocumentDefinition.)
Explicit interface implementationPrivate propertyIListIsReadOnly
Gets a value indicating whether the IList is read-only.
(Inherited from CollectionRootDocumentDefinition.)
Explicit interface implementationPrivate propertyICollectionIsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
(Inherited from CollectionRootDocumentDefinition.)
Explicit interface implementationPrivate propertyIListItem
Gets or sets the element at the specified index.
(Inherited from CollectionRootDocumentDefinition.)
Explicit interface implementationPrivate methodIListRemove
Removes the first occurrence of a specific object from the IList.
(Inherited from CollectionRootDocumentDefinition.)
Explicit interface implementationPrivate propertyICollectionSyncRoot
Gets an object that can be used to synchronize access to the ICollection.
(Inherited from CollectionRootDocumentDefinition.)
Top
See Also