ValueGeneratorCache ValueGeneratorCache Class

Keeps a cache of value generators for properties.

This type is typically used by database providers (and other extensions). It is generally not used in application code.

Syntax

Declaration

public abstract class ValueGeneratorCache : IValueGeneratorCachePublic MustInherit Class ValueGeneratorCache
    Implements IValueGeneratorCache

Inheritance Hierarchy

  • System.Object
    System.Object
  • ValueGeneratorCache
    ValueGeneratorCache

Inherited Members

ToString(),
ToString(),
Equals(Object),
Equals(Object),
Equals(Object, Object),
Equals(Object, Object),
ReferenceEquals(Object, Object),
ReferenceEquals(Object, Object),
GetHashCode(),
GetHashCode(),
GetType(),
GetType(),
MemberwiseClone()
MemberwiseClone()

Methods summary

Gets the existing value generator from the cache, or creates a new one if one is not present in the cache.

Methods

  • GetOrAdd(IProperty, IEntityType, Func<IProperty, IEntityType, ValueGenerator>)
    GetOrAdd(IProperty, IEntityType, Func(Of IProperty, IEntityType, ValueGenerator))

    Gets the existing value generator from the cache, or creates a new one if one is not present in the cache.

    public virtual ValueGenerator GetOrAdd(IProperty property, IEntityType entityType, Func<IProperty, IEntityType, ValueGenerator> factory)Public Overridable Function GetOrAdd(property As IProperty, entityType As IEntityType, factory As Func(Of IProperty, IEntityType, ValueGenerator)) As ValueGenerator

    Parameters

    Returns

Details

Assembly

Microsoft.EntityFrameworkCore.dll