Class MonsterTypeReadOnlyRepository
Class that represents a read-only repository for monster types.
Inheritance
System.Object
MonsterTypeReadOnlyRepository
Implements
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 SourceMonsterTypeReadOnlyRepository(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 SourceFindMany(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. |
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. |
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. |
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. |