Skip to main content
.NET API Catalog
  • Browse
  • Search
  • Diff
  • Others
    Feature Usage Stats
    Version Source
  • .NET Upgrade Planner
  1. Catalog
  2. Microsoft.EntityFrameworkCore.Metadata.Internal
  3. ClrICollectionAccessor<TEntity, TCollection, TElement>
  4. GetOrCreate(Object)
  • ClrICollectionAccessor<TEntity, TCollection, TElement>
    • ClrICollectionAccessor(String, Func<TEntity, TCollection>, Action<TEntity, TCollection>, Func<TEntity, Action<TEntity, TCollection>, TCollection>, Func<TCollection>)
    • ClrICollectionAccessor(String, Boolean, Func<TEntity, TCollection>, Action<TEntity, TCollection>, Action<TEntity, TCollection>, Func<TEntity, Action<TEntity, TCollection>, TCollection>, Func<TCollection>)
    • CollectionType
    • Add(Object, Object)
    • Add(Object, Object, Boolean)
    • AddRange(Object, IEnumerable<Object>)
    • AddStandalone(Object, Object)
    • Contains(Object, Object)
    • ContainsStandalone(Object, Object)
    • Create()
    • Create(IEnumerable<Object>)
    • GetOrCreate(Object)
    • GetOrCreate(Object, Boolean)
    • Remove(Object, Object)
    • RemoveStandalone(Object, Object)
netcoreapp2.2
namespace Microsoft.EntityFrameworkCore.Metadata.Internal
{
    public class ClrICollectionAccessor<TEntity, TCollection, TElement> : IClrCollectionAccessor
        where TEntity, class
        where TCollection, class, IEnumerable<TElement>
    {
        public virtual object GetOrCreate(object instance);
    }
}
.NET Core 2.02.12.2
Information specific to netcoreapp2.2
Assembly

Microsoft.EntityFrameworkCore , Version=2.2.6.0, PublicKeyToken=adb9793829ddae60

Referencing

The API is automatically referenced.

Platform Restrictions

This framework does not have platform annotations.

  • Built-in API
  • Package-provided API
Search

03/18/2025
An error has occurred. This application may no longer respond until reloaded. Reload 🗙