C# Class GestUAB.DataAccess.UserDataAccess

User data access.
ファイルを表示 Open project: GestUAB/GestUAB

Public Methods

Method 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 method

Create the specified model.
public Create ( User model ) : User
model GestUAB.Models.User /// The user model. ///
return GestUAB.Models.User

Delete() public method

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

Delete() public method

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

Read() public method

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

Read() public method

Read the specified id.
public Read ( string id ) : User
id string /// Identifier. ///
return GestUAB.Models.User

ReadAll() public method

Reads all.
public ReadAll ( ) : IQueryable
return IQueryable

Update() public method

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. ///
return bool

Update() public method

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. ///
return bool

UserDataAccess() public method

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

Validate() public method

public Validate ( string username, string password ) : Guid?
username string
password string
return Guid?