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
TThe 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
storeObjectStoreObjectIdentifierThe store object.
valueTThe value to store.
Find(in StoreObjectIdentifier)
public virtual T? Find(in StoreObjectIdentifier storeObject)
Parameters
storeObjectStoreObjectIdentifier
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
storeObjectStoreObjectIdentifierThe key of the element to remove.
Returns
- T
The removed value.