Show / Hide Table of Contents

    Class ItemTypeReadOnlyRepository

    Class that represents a read-only repository for item types.

    Inheritance
    System.Object
    ItemTypeReadOnlyRepository
    Implements
    IReadOnlyRepository<IItemTypeEntity>
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: Fibula.Data.Repositories
    Assembly: Fibula.Data.dll
    Syntax
    public class ItemTypeReadOnlyRepository : IReadOnlyRepository<IItemTypeEntity>

    Constructors

    | Improve this Doc View Source

    ItemTypeReadOnlyRepository(IItemTypeLoader)

    Initializes a new instance of the ItemTypeReadOnlyRepository class.

    Declaration
    public ItemTypeReadOnlyRepository(IItemTypeLoader itemTypeLoader)
    Parameters
    Type Name Description
    IItemTypeLoader itemTypeLoader

    A reference to the item type loader in use.

    Methods

    | Improve this Doc View Source

    FindMany(Expression<Func<IItemTypeEntity, Boolean>>)

    Finds all the entities in the set within the context that satisfy an expression.

    Declaration
    public IEnumerable<IItemTypeEntity> FindMany(Expression<Func<IItemTypeEntity, bool>> predicate)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Func<IItemTypeEntity, System.Boolean>> predicate

    The expression to satisfy.

    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IItemTypeEntity>

    The collection of entities retrieved.

    | Improve this Doc View Source

    FindOne(Expression<Func<IItemTypeEntity, Boolean>>)

    Finds an entity in the set within the context that satisfies an expression. If more than one entity satisfies the expression, one is picked up in an unknown criteria.

    Declaration
    public IItemTypeEntity FindOne(Expression<Func<IItemTypeEntity, bool>> predicate)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Func<IItemTypeEntity, System.Boolean>> predicate

    The expression to satisfy.

    Returns
    Type Description
    IItemTypeEntity

    The entity found.

    | Improve this Doc View Source

    GetAll()

    Gets all the entities from the set in the context.

    Declaration
    public IEnumerable<IItemTypeEntity> GetAll()
    Returns
    Type Description
    System.Collections.Generic.IEnumerable<IItemTypeEntity>

    The collection of entities retrieved.

    | Improve this Doc View Source

    GetById(String)

    Gets an entity that matches an id, from the context.

    Declaration
    public IItemTypeEntity GetById(string id)
    Parameters
    Type Name Description
    System.String id

    The id to match.

    Returns
    Type Description
    IItemTypeEntity

    The entity found, if any.

    Implements

    IReadOnlyRepository<TEntity>

    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.