Class ReferencingForeignKeysCache
- Namespace
- JsonApiDotNetCore.Repositories
- Assembly
- JsonApiDotNetCore.dll
Caches referencing Entity Framework Core foreign keys that have ClientSetNull for a principal entity type.
[PublicAPI]
public sealed class ReferencingForeignKeysCache : IReferencingForeignKeysCache
- Inheritance
-
ReferencingForeignKeysCache
- Implements
- Inherited Members
Methods
GetForeignKeysRequiringClientSetNullOnDelete(IReadOnlyModel, Type)
Returns the referencing foreign keys that have ClientSetNull for the specified principal entity type.
public IReadOnlyList<IReadOnlyForeignKey> GetForeignKeysRequiringClientSetNullOnDelete(IReadOnlyModel model, Type entityClrType)
Parameters
modelIReadOnlyModelentityClrTypeType