Show / Hide Table of Contents

    Class MonsterTypeReadOnlyRepository

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

    Inheritance
    System.Object
    MonsterTypeReadOnlyRepository
    Implements
    IReadOnlyRepository<IMonsterTypeEntity>
    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 MonsterTypeReadOnlyRepository : IReadOnlyRepository<IMonsterTypeEntity>

    Constructors

    | Improve this Doc View Source

    MonsterTypeReadOnlyRepository(IMonsterTypeLoader)

    Initializes a new instance of the MonsterTypeReadOnlyRepository class.

    Declaration
    public MonsterTypeReadOnlyRepository(IMonsterTypeLoader monsterTypeLoader)
    Parameters
    Type Name Description
    IMonsterTypeLoader monsterTypeLoader

    A reference to the monster type loader in use.

    Methods

    | Improve this Doc View Source

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

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

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

    The expression to satisfy.

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

    The collection of entities retrieved.

    | Improve this Doc View Source

    FindOne(Expression<Func<IMonsterTypeEntity, 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 IMonsterTypeEntity FindOne(Expression<Func<IMonsterTypeEntity, bool>> predicate)
    Parameters
    Type Name Description
    System.Linq.Expressions.Expression<System.Func<IMonsterTypeEntity, System.Boolean>> predicate

    The expression to satisfy.

    Returns
    Type Description
    IMonsterTypeEntity

    The entity found.

    | Improve this Doc View Source

    GetAll()

    Gets all the entities from the set in the context.

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

    The collection of entities retrieved.

    | Improve this Doc View Source

    GetById(String)

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

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

    The id to match.

    Returns
    Type Description
    IMonsterTypeEntity

    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.