Class EntityMetadataDictionary
Data structure built from an entity model, containing a runtime representation of model nodes which can be used for dynamic application logic.
public sealed class EntityMetadataDictionary : IReadOnlyDictionary<string, IEntityInfo>, IReadOnlyCollection<KeyValuePair<string, IEntityInfo>>, IEnumerable<KeyValuePair<string, IEntityInfo>>, IEnumerable
- Inheritance
-
EntityMetadataDictionary
- Implements
- Inherited Members
Constructors
EntityMetadataDictionary(string, bool, Assembly, IReadOnlyDictionary<string, IEntityInfo>?, IReadOnlyDictionary<string, IEntityInfo>?)
public EntityMetadataDictionary(string emptyText, bool includesLegacyAttributes, Assembly defaultEntryPoint, IReadOnlyDictionary<string, IEntityInfo>? entitiesByName = null, IReadOnlyDictionary<string, IEntityInfo>? entitiesByInterfaceName = null)
Parameters
emptyTextstringincludesLegacyAttributesbooldefaultEntryPointAssemblyentitiesByNameIReadOnlyDictionary<string, IEntityInfo>entitiesByInterfaceNameIReadOnlyDictionary<string, IEntityInfo>
Fields
ApplicationSettingsEntity
public readonly IEntityInfo? ApplicationSettingsEntity
Field Value
AuditEntityEntity
public readonly IEntityInfo? AuditEntityEntity
Field Value
AuditRelationshipEntity
public readonly IEntityInfo? AuditRelationshipEntity
Field Value
CalendarEntryEntity
public readonly IEntityInfo? CalendarEntryEntity
Field Value
DefaultEntryPoint
public readonly Assembly DefaultEntryPoint
Field Value
DocumentAccessEntryEntity
public readonly IEntityInfo? DocumentAccessEntryEntity
Field Value
EntitiesByInterfaceName
public readonly IReadOnlyDictionary<string, IEntityInfo> EntitiesByInterfaceName
Field Value
IncludesLegacyAttributes
public readonly bool IncludesLegacyAttributes
Field Value
JobRunEntity
public readonly IEntityInfo? JobRunEntity
Field Value
ScrambledDatabaseEntity
public readonly IEntityInfo? ScrambledDatabaseEntity
Field Value
ScrambledSpreadsheetEntity
public readonly IEntityInfo? ScrambledSpreadsheetEntity
Field Value
SpreadsheetColumnEntity
public readonly IEntityInfo? SpreadsheetColumnEntity
Field Value
SpreadsheetEntity
public readonly IEntityInfo? SpreadsheetEntity
Field Value
StoredDocumentEntity
public readonly IEntityInfo? StoredDocumentEntity
Field Value
UserAccountEntity
public readonly IEntityInfo? UserAccountEntity
Field Value
UserClaimEntity
public readonly IEntityInfo? UserClaimEntity
Field Value
UserProfileEntity
public readonly IEntityInfo? UserProfileEntity
Field Value
UserRegistrationRequestEntity
public readonly IEntityInfo? UserRegistrationRequestEntity
Field Value
Properties
ByID
public IReadOnlyDictionary<Guid, IEntityInfo> ByID { get; }
Property Value
Count
Gets the number of elements in the collection.
public int Count { get; }
Property Value
- int
The number of elements in the collection.
this[string]
Gets the element that has the specified key in the read-only dictionary.
public IEntityInfo this[string key] { get; }
Parameters
keystringThe key to locate.
Property Value
- IEntityInfo
The element that has the specified key in the read-only dictionary.
Exceptions
- ArgumentNullException
keyis null.- KeyNotFoundException
The property is retrieved and
keyis not found.
Keys
Gets an enumerable collection that contains the keys in the read-only dictionary.
public IEnumerable<string> Keys { get; }
Property Value
- IEnumerable<string>
An enumerable collection that contains the keys in the read-only dictionary.
Values
Gets an enumerable collection that contains the values in the read-only dictionary.
public IEnumerable<IEntityInfo> Values { get; }
Property Value
- IEnumerable<IEntityInfo>
An enumerable collection that contains the values in the read-only dictionary.
Methods
ContainsKey(string)
Determines whether the read-only dictionary contains an element that has the specified key.
public bool ContainsKey(string key)
Parameters
keystringThe key to locate.
Returns
- bool
true if the read-only dictionary contains an element that has the specified key; otherwise, false.
Exceptions
- ArgumentNullException
keyis null.
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<KeyValuePair<string, IEntityInfo>> GetEnumerator()
Returns
- IEnumerator<KeyValuePair<string, IEntityInfo>>
An enumerator that can be used to iterate through the collection.
TryGetValue(string, out IEntityInfo)
Gets the value that is associated with the specified key.
public bool TryGetValue(string key, out IEntityInfo value)
Parameters
keystringThe key to locate.
valueIEntityInfoWhen this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the
valueparameter. This parameter is passed uninitialized.
Returns
- bool
true if the object that implements the IReadOnlyDictionary<TKey, TValue> interface contains an element that has the specified key; otherwise, false.
Exceptions
- ArgumentNullException
keyis null.