Show / Hide Table of Contents

    Class CustomAttributeDictionary

    Represents a collection of custom attribute values.

    Inheritance
    Object
    Dictionary<Int32, String>
    CustomAttributeDictionary
    Implements
    IDictionary<Int32, String>
    ICollection<KeyValuePair<Int32, String>>
    IDictionary
    ICollection
    IReadOnlyDictionary<Int32, String>
    IReadOnlyCollection<KeyValuePair<Int32, String>>
    IEnumerable<KeyValuePair<Int32, String>>
    IEnumerable
    ISerializable
    IDeserializationCallback
    Inherited Members
    Dictionary<Int32, String>.Add(Int32, String)
    System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Int32, System.String>>.Add(System.Collections.Generic.KeyValuePair<System.Int32, System.String>)
    System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Int32, System.String>>.Contains(System.Collections.Generic.KeyValuePair<System.Int32, System.String>)
    System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Int32, System.String>>.Remove(System.Collections.Generic.KeyValuePair<System.Int32, System.String>)
    Dictionary<Int32, String>.Clear()
    Dictionary<Int32, String>.ContainsKey(Int32)
    Dictionary<Int32, String>.ContainsValue(String)
    Dictionary<Int32, String>.GetEnumerator()
    System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<System.Int32, System.String>>.GetEnumerator()
    Dictionary<Int32, String>.GetObjectData(SerializationInfo, StreamingContext)
    Dictionary<Int32, String>.OnDeserialization(Object)
    Dictionary<Int32, String>.Remove(Int32)
    Dictionary<Int32, String>.TryGetValue(Int32, String)
    System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Int32, System.String>>.CopyTo(System.Collections.Generic.KeyValuePair<System.Int32, System.String>[], System.Int32)
    Dictionary<Int32, String>.ICollection.CopyTo(Array, Int32)
    Dictionary<Int32, String>.IEnumerable.GetEnumerator()
    System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.IDictionary.get_Item(System.Object)
    System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.IDictionary.set_Item(System.Object, System.Object)
    Dictionary<Int32, String>.IDictionary.Add(Object, Object)
    Dictionary<Int32, String>.IDictionary.Contains(Object)
    Dictionary<Int32, String>.IDictionary.GetEnumerator()
    Dictionary<Int32, String>.IDictionary.Remove(Object)
    Dictionary<Int32, String>.Comparer
    Dictionary<Int32, String>.Count
    Dictionary<Int32, String>.Keys
    System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.IDictionary<System.Int32, System.String>.Keys
    System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.IReadOnlyDictionary<System.Int32, System.String>.Keys
    Dictionary<Int32, String>.Values
    System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.IDictionary<System.Int32, System.String>.Values
    System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.IReadOnlyDictionary<System.Int32, System.String>.Values
    Dictionary<Int32, String>.Item[Int32]
    System.Collections.Generic.Dictionary<System.Int32, System.String>.System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<System.Int32, System.String>>.IsReadOnly
    Dictionary<Int32, String>.ICollection.IsSynchronized
    Dictionary<Int32, String>.ICollection.SyncRoot
    Dictionary<Int32, String>.IDictionary.IsFixedSize
    Dictionary<Int32, String>.IDictionary.IsReadOnly
    Dictionary<Int32, String>.IDictionary.Keys
    Dictionary<Int32, String>.IDictionary.Values
    Dictionary<Int32, String>.IDictionary.Item[Object]
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Nevatech.Vsb.Repository.Entities
    Assembly: Nevatech.Vsb.Repository.dll
    Syntax
    public sealed class CustomAttributeDictionary : Dictionary<int, string>, IDictionary<int, string>, ICollection<KeyValuePair<int, string>>, IDictionary, ICollection, IReadOnlyDictionary<int, string>, IReadOnlyCollection<KeyValuePair<int, string>>, IEnumerable<KeyValuePair<int, string>>, IEnumerable, ISerializable, IDeserializationCallback

    Constructors

    CustomAttributeDictionary()

    Initializes an empty instance.

    Declaration
    public CustomAttributeDictionary()

    Methods

    IsEquivalent(CustomAttributeDictionary)

    Compares items in this dictionary with items in the provided dictionary using custom attribute specific comparison rules. For example, if attribute does not exist in the dictionary, it is assumed that its value is Null. If attribute is not provided in the other dictionary, it is assumed that its value is not changed.

    Declaration
    public bool IsEquivalent(CustomAttributeDictionary other)
    Parameters
    Type Name Description
    CustomAttributeDictionary other

    Custom attributes to compare with.

    Returns
    Type Description
    Boolean

    True if dictionaries are equivalent. Otherwise false.

    Remarks

    For accurate results this method should be called on the dictionary that belongs to an existing entity, and provided dictionary should belong to an updated entity.

    Validate(ICollection<CustomAttributeType>, Boolean)

    Checks if all items belongs to the provided collection of the allowed attributes and satisfy their type requirements.

    Declaration
    public string Validate(ICollection<CustomAttributeType> attributeTypes, bool ensureRequired)
    Parameters
    Type Name Description
    ICollection<CustomAttributeType> attributeTypes

    Collection of attribute types defining the attributes that are allowed to be in this dictionary.

    Boolean ensureRequired

    Flag indicating that all required attributes must be present in this dictionary.

    Returns
    Type Description
    String

    Message explaining the found errors or Null, if no errors are found.

    Implements

    System.Collections.Generic.IDictionary<TKey,TValue>
    System.Collections.Generic.ICollection<T>
    System.Collections.IDictionary
    System.Collections.ICollection
    System.Collections.Generic.IReadOnlyDictionary<TKey,TValue>
    System.Collections.Generic.IReadOnlyCollection<T>
    System.Collections.Generic.IEnumerable<T>
    System.Collections.IEnumerable
    System.Runtime.Serialization.ISerializable
    System.Runtime.Serialization.IDeserializationCallback
    Back to top Nevatech Sentinet 6.5 Online Documentation