Template Documentation
MoviesRepository Class |
A class repository to manage all the movies category actions
Inheritance Hierarchy
SystemObject Template.Repository.CoreGenericRepositoryMOVIES
Template.Repository.ClassMoviesRepository
Template.Repository.ClassMoviesRepository
Namespace: Template.Repository.Class
Assembly: Template.Repository (in Template.Repository.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class MoviesRepository : GenericRepository<MOVIES>, IMoviesRepository, IGenericRepository<MOVIES>
The MoviesRepository type exposes the following members.
Constructors
Name | Description | |
---|---|---|
MoviesRepository |
Constructor of MoviesCategoryRepository |
Properties
Methods
Name | Description | |
---|---|---|
Add |
Add a new entity to the context, it will be added to the database on Save
(Inherited from GenericRepositoryTEntity.) | |
AddIEnumerable |
Add a IEnumerable of new entities to the context, they will be added to the database on Save
(Inherited from GenericRepositoryTEntity.) | |
Delete |
Marks the given entity as deleted, the entity will be deleted on Save
(Inherited from GenericRepositoryTEntity.) | |
DeleteBy |
Marks the entities that match with the given predicate as deleted, they will be deleted of the database on Save
(Inherited from GenericRepositoryTEntity.) | |
Edit |
Marks the passed entity as Modified, the changes will persist on Save
(Inherited from GenericRepositoryTEntity.) | |
FindBy |
Filters the results by the passed predicate
(Inherited from GenericRepositoryTEntity.) | |
Get |
Gets an unique TEntity from the database
(Inherited from GenericRepositoryTEntity.) | |
GetAll |
Get all the results of the IEntity
(Inherited from GenericRepositoryTEntity.) | |
Save |
Save all the changes made to the context
(Inherited from GenericRepositoryTEntity.) | |
SelectWhereTResult |
This function allows to select the specific properties and filter by where clause on database, not on memory, in that way it improves the performace
(Inherited from GenericRepositoryTEntity.) |
Fields
Name | Description | |
---|---|---|
_DBEntities |
The DbContext of entity framework
(Inherited from GenericRepositoryTEntity.) | |
_Entity |
The DbSet that represents the database table to do all the queries
(Inherited from GenericRepositoryTEntity.) |
See Also