Class ItemTypeReadOnlyRepository
Class that represents a read-only repository for item types.
Inheritance
System.Object
ItemTypeReadOnlyRepository
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 ItemTypeReadOnlyRepository : IReadOnlyRepository<IItemTypeEntity>
Constructors
| Improve this Doc View SourceItemTypeReadOnlyRepository(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 SourceFindMany(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. |
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. |
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. |
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. |