C# Class Mhotivo.App_Data.Repositories.UserRepository

Inheritance: IUserRepository
Mostrar archivo Open project: armejiaf/Mhotivo

Public Methods

Method Description
Create ( User itemToCreate ) : User
Delete ( long id ) : User
Dispose ( ) : void
Filter ( bool>.Expression expression ) : IQueryable
First ( bool>.Expression query ) : User
GetAllUsers ( ) : IEnumerable
GetById ( long id ) : User
Query ( User>.Expression expression ) : IQueryable
SaveChanges ( ) : void
Update ( User itemToUpdate, bool updateRole = true ) : User
UserRepository ( MhotivoContext ctx ) : System

Method Details

Create() public method

public Create ( User itemToCreate ) : User
itemToCreate Mhotivo.Models.User
return Mhotivo.Models.User

Delete() public method

public Delete ( long id ) : User
id long
return Mhotivo.Models.User

Dispose() public method

public Dispose ( ) : void
return void

Filter() public method

public Filter ( bool>.Expression expression ) : IQueryable
expression bool>.Expression
return IQueryable

First() public method

public First ( bool>.Expression query ) : User
query bool>.Expression
return Mhotivo.Models.User

GetAllUsers() public method

public GetAllUsers ( ) : IEnumerable
return IEnumerable

GetById() public method

public GetById ( long id ) : User
id long
return Mhotivo.Models.User

Query() public method

public Query ( User>.Expression expression ) : IQueryable
expression User>.Expression
return IQueryable

SaveChanges() public method

public SaveChanges ( ) : void
return void

Update() public method

public Update ( User itemToUpdate, bool updateRole = true ) : User
itemToUpdate Mhotivo.Models.User
updateRole bool
return Mhotivo.Models.User

UserRepository() public method

public UserRepository ( MhotivoContext ctx ) : System
ctx MhotivoContext
return System