C# Class GestUAB.DataAccess.UserDataAccess

User data access.
Afficher le fichier Open project: GestUAB/GestUAB

Méthodes publiques

Méthode Description
Create ( User model ) : User

Create the specified model.

Delete ( User model ) : bool

Delete the specified model.

Delete ( string id ) : bool

Delete the specified id.

Read ( System.Guid id ) : User

Read the specified id.

Read ( string id ) : User

Read the specified id.

ReadAll ( ) : IQueryable

Reads all.

Update ( User oldT, User newT ) : bool

Update the specified oldT and newT.

Update ( string id, User newT ) : bool

Update the specified id and newT.

UserDataAccess ( ) : System

Initializes a new instance of the GestUAB.DataAccess.UserDataAccess class.

Validate ( string username, string password ) : Guid?

Method Details

Create() public méthode

Create the specified model.
public Create ( User model ) : User
model GestUAB.Models.User /// The user model. ///
Résultat GestUAB.Models.User

Delete() public méthode

Delete the specified model.
public Delete ( User model ) : bool
model GestUAB.Models.User /// If set to true model. ///
Résultat bool

Delete() public méthode

Delete the specified id.
public Delete ( string id ) : bool
id string /// If set to true identifier. ///
Résultat bool

Read() public méthode

Read the specified id.
public Read ( System.Guid id ) : User
id System.Guid /// Identifier. ///
Résultat GestUAB.Models.User

Read() public méthode

Read the specified id.
public Read ( string id ) : User
id string /// Identifier. ///
Résultat GestUAB.Models.User

ReadAll() public méthode

Reads all.
public ReadAll ( ) : IQueryable
Résultat IQueryable

Update() public méthode

Update the specified oldT and newT.
public Update ( User oldT, User newT ) : bool
oldT GestUAB.Models.User /// If set to true old t. ///
newT GestUAB.Models.User /// If set to true new t. ///
Résultat bool

Update() public méthode

Update the specified id and newT.
public Update ( string id, User newT ) : bool
id string /// If set to true identifier. ///
newT GestUAB.Models.User /// If set to true new t. ///
Résultat bool

UserDataAccess() public méthode

Initializes a new instance of the GestUAB.DataAccess.UserDataAccess class.
public UserDataAccess ( ) : System
Résultat System

Validate() public méthode

public Validate ( string username, string password ) : Guid?
username string
password string
Résultat Guid?