Table of Contents

IDeletableRepository<TEntity, TKey> Interface

Definition

Namespace
Savvyio.Domain
Assemblies
Savvyio.Core.dll
Source
src/Savvyio.Core/Domain/IDeletableRepository.cs

Defines a generic way of abstracting deletable repositories (cruD).

public interface IDeletableRepository<in TEntity, TKey> : IRepository<TEntity, TKey> where TEntity : class, IIdentity<TKey>

Type Parameters

TEntity

The type of the entity.

TKey

The type of the key that uniquely identifies the entity.

Methods

Name Description
Remove(TEntity)

Marks the specified entity to be removed from the data store when SaveChangesAsync(Action<AsyncOptions>) is called.

RemoveRange(IEnumerable<TEntity>)

Marks the specified entities to be removed from the data store when SaveChangesAsync(Action<AsyncOptions>) is called.

See Also

IRepository<TEntity, TKey>