Class StoreObjectDictionary<T>
- Namespace
- Microsoft.EntityFrameworkCore.Metadata
- Assembly
- Microsoft.EntityFrameworkCore.Relational.dll
Represents a lookup based on StoreObjectIdentifier keys.
public class StoreObjectDictionary<T> : IReadOnlyStoreObjectDictionary<T> where T : class
Type Parameters
T
The values type.
- Inheritance
-
StoreObjectDictionary<T>
- Implements
- Inherited Members
Constructors
StoreObjectDictionary()
public StoreObjectDictionary()
Methods
Add(in StoreObjectIdentifier, T)
Adds the specified key and value to the dictionary.
public virtual void Add(in StoreObjectIdentifier storeObject, T value)
Parameters
storeObject
StoreObjectIdentifierThe store object.
value
TThe value to store.
Find(in StoreObjectIdentifier)
public virtual T? Find(in StoreObjectIdentifier storeObject)
Parameters
storeObject
StoreObjectIdentifier
Returns
- T
GetValues()
public virtual IEnumerable<T> GetValues()
Returns
- IEnumerable<T>
Remove(in StoreObjectIdentifier)
Removes the value with the specified key from the collection and returns it if successful.
public virtual T? Remove(in StoreObjectIdentifier storeObject)
Parameters
storeObject
StoreObjectIdentifierThe key of the element to remove.
Returns
- T
The removed value.