Show / Hide Table of Contents

    Interface IRepository<TEntity>

    Interface for a generic entity repository.

    Inherited Members
    IReadOnlyRepository<TEntity>.GetById(String)
    IReadOnlyRepository<TEntity>.GetAll()
    IReadOnlyRepository<TEntity>.FindMany(Expression<Func<TEntity, Boolean>>)
    IReadOnlyRepository<TEntity>.FindOne(Expression<Func<TEntity, Boolean>>)
    Namespace: Fibula.Data.Contracts.Abstractions
    Assembly: Fibula.Data.Contracts.dll
    Syntax
    public interface IRepository<TEntity> : IReadOnlyRepository<TEntity> where TEntity : IIdentifiableEntity
    Type Parameters
    Name Description
    TEntity

    The entity type.

    Methods

    | Improve this Doc View Source

    Add(TEntity)

    Adds an entity to the repository.

    Declaration
    void Add(TEntity entity)
    Parameters
    Type Name Description
    TEntity entity

    The entity to add.

    | Improve this Doc View Source

    AddRange(IEnumerable<TEntity>)

    Adds multiple entities to the respository.

    Declaration
    void AddRange(IEnumerable<TEntity> entities)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<TEntity> entities

    The entities to add.

    | Improve this Doc View Source

    Remove(TEntity)

    Removes an entity from the repository.

    Declaration
    void Remove(TEntity entity)
    Parameters
    Type Name Description
    TEntity entity

    The entity to remove.

    | Improve this Doc View Source

    RemoveRange(IEnumerable<TEntity>)

    Removes multiple entities from the repository.

    Declaration
    void RemoveRange(IEnumerable<TEntity> entities)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<TEntity> entities

    The entities to remove.

    Extension Methods

    ObjectExtensions.YieldSingleItem<T>(T)
    ObjectExtensions.GetPropertyValue(Object, String)
    Validate.ThrowIfNull(Object, String)
    • Improve this Doc
    • View Source
    Back to top Copyright © 2018-2020 | The Fibula Project
    Generated using DocFX | Jose L. Nuñez de Caceres et al.