MoviesCategoryRepository Class

Template MVC

MoviesCategoryRepository Class

A class repository to manage all the user profile actions
Inheritance Hierarchy
SystemObject  Template.Repository.CoreGenericRepositoryMOVIE_CATEGORY
    Template.Repository.ClassMoviesCategoryRepository

Namespace:  Template.Repository.Class
Assembly:  Template.Repository (in Template.Repository.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class MoviesCategoryRepository : GenericRepository<MOVIE_CATEGORY>, 
	IMoviesCategoryRepository, IGenericRepository<MOVIE_CATEGORY>

The MoviesCategoryRepository type exposes the following members.

Constructors
  NameDescription
Public methodMoviesCategoryRepository
Constructor of MoviesCategoryRepository
Top
Properties
  NameDescription
Private property_entities
Top
Methods
  NameDescription
Public methodAdd
Add a new entity to the context, it will be added to the database on Save
(Inherited from GenericRepositoryTEntity.)
Public methodAddIEnumerable
Add a IEnumerable of new entities to the context, they will be added to the database on Save
(Inherited from GenericRepositoryTEntity.)
Public methodDelete
Marks the given entity as deleted, the entity will be deleted on Save
(Inherited from GenericRepositoryTEntity.)
Public methodDeleteBy
Marks the entities that match with the given predicate as deleted, they will be deleted of the database on Save
(Inherited from GenericRepositoryTEntity.)
Public methodEdit
Marks the passed entity as Modified, the changes will persist on Save
(Inherited from GenericRepositoryTEntity.)
Public methodFindBy
Filters the results by the passed predicate
(Inherited from GenericRepositoryTEntity.)
Public methodGet
Gets an unique TEntity from the database
(Inherited from GenericRepositoryTEntity.)
Public methodGetAll
Retrives all the UserProfiles entities with their roles
(Overrides GenericRepositoryTEntityGetAll.)
Public methodSave
Save all the changes made to the context
(Inherited from GenericRepositoryTEntity.)
Public methodSelectWhereTResult
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.)
Top
Fields
  NameDescription
Protected field_DBEntities
The DbContext of entity framework
(Inherited from GenericRepositoryTEntity.)
Protected field_Entity
The DbSet that represents the database table to do all the queries
(Inherited from GenericRepositoryTEntity.)
Top
See Also