Click or drag to resize
UniqueConstraint Class
Class which represents a unique constraint in an entity
Inheritance Hierarchy
System.Object
  System.Collections.ObjectModel.Collection<IFieldElementCore>
    SD.Tools.Algorithmia.GeneralDataStructures.CommandifiedList<IFieldElementCore>
      SD.LLBLGen.Pro.ApplicationCore.EntityModel.FieldElementCoreList<IFieldElementCore>
        SD.LLBLGen.Pro.ApplicationCore.EntityModel.FieldReferenceList
          SD.LLBLGen.Pro.ApplicationCore.EntityModel.UniqueConstraint

Namespace: SD.LLBLGen.Pro.ApplicationCore.EntityModel
Assembly: SD.LLBLGen.Pro.ApplicationCore (in SD.LLBLGen.Pro.ApplicationCore.dll) Version: 5.0.0.0 (5.0.0)
Syntax
public class UniqueConstraint : FieldReferenceList, 
	IDataErrorInfo, IEditableObject, INotifyAsRemoved

The UniqueConstraint type exposes the following members.

Constructors
  NameDescription
Public methodUniqueConstraint()
Initializes a new instance of the UniqueConstraint class.
Public methodUniqueConstraint(String)
Initializes a new instance of the UniqueConstraint class.
Top
Properties
  NameDescription
Public propertyAllowEdit
Gets whether you can update items in the list.
(Inherited from CommandifiedList<T>.)
Public propertyAllowNew (Inherited from CommandifiedList<T>.)
Public propertyAllowRemove
Gets whether you can remove items from the list, using Remove(Object) or RemoveAt(Int32).
(Inherited from CommandifiedList<T>.)
Public propertyCount (Inherited from Collection<IFieldElementCore>.)
Protected propertyDeserializing (Inherited from FieldElementCoreList<TField>.)
Public propertyError
Gets an error message indicating what is wrong with this object.
Public propertyFieldsAsString
Gets the fields as string, which means it returns a comma delimited list with all the field names in this UC.
(Inherited from FieldElementCoreList<TField>.)
Public propertyIsSorted
Gets whether the items in the list are sorted.
(Inherited from CommandifiedList<T>.)
Public propertyIsValid
Gets a value indicating whether this instance is valid.
Public propertyItem[Int32]
Gets or sets the element at the specified index.
(Inherited from Collection<IFieldElementCore>.)
Public propertyItem[String]
Gets the String with the specified column name.
Protected propertyItems (Inherited from Collection<IFieldElementCore>.)
Public propertyName
Gets or sets the name of the unique constraint.
Public propertySortDirection
Gets the direction of the sort.
(Inherited from CommandifiedList<T>.)
Public propertySortProperty
Gets the PropertyDescriptor that is being used for sorting.
(Inherited from CommandifiedList<T>.)
Public propertySupportsChangeNotification
Gets whether a ListChanged event is raised when the list changes or an item in the list changes.
(Inherited from CommandifiedList<T>.)
Public propertySupportsSearching
Gets whether the list supports searching using the Find(PropertyDescriptor, Object) method.
(Inherited from CommandifiedList<T>.)
Public propertySupportsSorting
Gets whether the list supports sorting.
(Inherited from CommandifiedList<T>.)
Public propertySuppressEvents
Gets or sets a value indicating whether events are blocked from being raised (true) or not (false, default)
(Inherited from CommandifiedList<T>.)
Top
Methods
  NameDescription
Public methodAdd (Inherited from Collection<IFieldElementCore>.)
Public methodAddIndex
Adds the PropertyDescriptor to the indexes used for searching.
(Inherited from CommandifiedList<T>.)
Public methodAddNew
Adds a new item to the list.
(Inherited from CommandifiedList<T>.)
Public methodAddRange
Adds the elements in the range specified to this list in one command
(Inherited from CommandifiedList<T>.)
Public methodApplySort
Sorts the list based on a PropertyDescriptor and a ListSortDirection.
(Inherited from CommandifiedList<T>.)
Public methodBeginEdit
Begins an edit on an object.
Public methodCancelEdit
Public methodClear (Inherited from Collection<IFieldElementCore>.)
Protected methodClearItems (Inherited from CommandifiedList<T>.)
Public methodContains (Inherited from Collection<IFieldElementCore>.)
Public methodCopyTo (Inherited from Collection<IFieldElementCore>.)
Protected methodDeserializeAdditionalAttributes
Deserializes the additional attributes of the root element
(Inherited from FieldReferenceList.)
Protected methodDeserializeFields
Deserializes the fields.
(Inherited from FieldReferenceList.)
Public methodDeserializeFromReader
Deserializes the data in this unique constaint from the xml in the reader passed in
(Inherited from FieldReferenceList.)
Public methodEndEdit
Public methodEquals
Determines whether the specified Object is equal to this instance.
(Overrides Object.Equals(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 CommandifiedList<T>.)
Protected methodGetElementNameForXml
Gets the element name for XML.
(Overrides FieldReferenceList.GetElementNameForXml().)
Public methodGetEnumerator (Inherited from Collection<IFieldElementCore>.)
Public methodGetHashCode
Returns a hash code for this instance.
(Overrides Object.GetHashCode().)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodIndexOf (Inherited from Collection<IFieldElementCore>.)
Public methodInsert (Inherited from Collection<IFieldElementCore>.)
Protected methodInsertItem (Inherited from CommandifiedList<T>.)
Protected methodMarkElementAsChanged
Marks the uc definition as changed.
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 CommandifiedList<T>.)
Protected methodNotifyChange
Notifies a list change to observers with the parameters passed in.
(Inherited from CommandifiedList<T>.)
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 FieldElementCoreList<TField>.)
Protected methodOnAddingItemComplete
Called right after the item passed in has been added to the list
(Overrides CommandifiedList<T>.OnAddingItemComplete(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 FieldElementCoreList<TField>.)
Protected methodOnClearingComplete
Called right after the clear action has been completed.
(Overrides CommandifiedList<T>.OnClearingComplete().)
Protected methodOnElementPropertyChanged
Called when the PropertyChanged event was raised by an element in this list.
(Inherited from CommandifiedList<T>.)
Protected methodOnPropertyChanged
Called when a property has been changed.
(Inherited from FieldElementCoreList<TField>.)
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 FieldElementCoreList<TField>.)
Protected methodOnRemovingItemComplete
Called right after the item passed in has been removed from this list.
(Overrides CommandifiedList<T>.OnRemovingItemComplete(T).)
Protected methodPrepareFieldForListRemoval
Prepares the field for list removal.
(Inherited from FieldElementCoreList<TField>.)
Protected methodPropagateValidatorsToLoadedObjects
Propagates the validators to loaded objects.
(Inherited from FieldElementCoreList<TField>.)
Public methodRemove (Inherited from Collection<IFieldElementCore>.)
Public methodRemoveAt (Inherited from Collection<IFieldElementCore>.)
Public methodRemoveIndex
Removes the PropertyDescriptor from the indexes used for searching.
(Inherited from CommandifiedList<T>.)
Protected methodRemoveItem (Inherited from CommandifiedList<T>.)
Public methodRemoveSort
Removes any sort applied using ApplySort(PropertyDescriptor, ListSortDirection).
(Inherited from CommandifiedList<T>.)
Public methodResetBindings
Resets the bindings. Raises a ListChanged.Reset event
(Inherited from CommandifiedList<T>.)
Protected methodSerializeAdditionalAttributes
Serializes the additional attributes to the root element
(Overrides FieldReferenceList.SerializeAdditionalAttributes(ISerializer).)
Protected methodSerializeFields
Serializes the field references of the fields in this list
(Inherited from FieldReferenceList.)
Public methodSerializeToWriter
Serializes the data in this class to the serializer passed in
(Inherited from FieldReferenceList.)
Public methodSetAsNewContents
Sets the fields passed in as the new contents of this list. This is a separate routine, so the multiple actions taken are wrappeable into one command
(Inherited from FieldElementCoreList<TField>.)
Protected methodSetItem
Replaces the element at the specified index.
(Inherited from CommandifiedList<T>.)
Protected methodSetValidatorsForField
Sets the validators for field.
(Inherited from FieldElementCoreList<TField>.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from CommandifiedList<T>.)
Top
Events
  NameDescription
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 CommandifiedList<T>.)
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 CommandifiedList<T>.)
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 CommandifiedList<T>.)
Public eventFieldElementCoreInListChanged
Event which is raised when one of the fields inside this list has changed.
(Inherited from FieldElementCoreList<TField>.)
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 CommandifiedList<T>.)
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 CommandifiedList<T>.)
Public eventPropertyChanged
Occurs when a property value changes.
(Inherited from FieldElementCoreList<TField>.)
Public eventUniqueConstraintChanged
Event raised when the name of this unique constraint has been changed.
Top
Explicit Interface Implementations
  NameDescription
Explicit interface implementationPrivate methodIList.Add
Adds an item to the IList.
(Inherited from Collection<IFieldElementCore>.)
Explicit interface implementationPrivate methodIList.Contains
Determines whether the IList contains a specific value.
(Inherited from Collection<IFieldElementCore>.)
Explicit interface implementationPrivate methodICollection.CopyTo
Copies the elements of the ICollection to an Array, starting at a particular Array index.
(Inherited from Collection<IFieldElementCore>.)
Explicit interface implementationPrivate methodIEnumerable.GetEnumerator
Returns an enumerator that iterates through a collection.
(Inherited from Collection<IFieldElementCore>.)
Explicit interface implementationPrivate methodIList.IndexOf
Determines the index of a specific item in the IList.
(Inherited from Collection<IFieldElementCore>.)
Explicit interface implementationPrivate methodIList.Insert
Inserts an item into the IList at the specified index.
(Inherited from Collection<IFieldElementCore>.)
Explicit interface implementationPrivate propertyIList.IsFixedSize
Gets a value indicating whether the IList has a fixed size.
(Inherited from Collection<IFieldElementCore>.)
Explicit interface implementationPrivate propertyICollection<T>.IsReadOnly (Inherited from Collection<IFieldElementCore>.)
Explicit interface implementationPrivate propertyIList.IsReadOnly
Gets a value indicating whether the IList is read-only.
(Inherited from Collection<IFieldElementCore>.)
Explicit interface implementationPrivate propertyICollection.IsSynchronized
Gets a value indicating whether access to the ICollection is synchronized (thread safe).
(Inherited from Collection<IFieldElementCore>.)
Explicit interface implementationPrivate propertyIList.Item
Gets or sets the element at the specified index.
(Inherited from Collection<IFieldElementCore>.)
Explicit interface implementationPrivate methodIList.Remove
Removes the first occurrence of a specific object from the IList.
(Inherited from Collection<IFieldElementCore>.)
Explicit interface implementationPrivate propertyICollection.SyncRoot
Gets an object that can be used to synchronize access to the ICollection.
(Inherited from Collection<IFieldElementCore>.)
Top
See Also