C# Класс GestUAB.DataAccess.UserDataAccess

User data access.
Показать файл Открыть проект

Открытые методы

Метод Описание
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?

Описание методов

Create() публичный Метод

Create the specified model.
public Create ( User model ) : User
model GestUAB.Models.User /// The user model. ///
Результат GestUAB.Models.User

Delete() публичный Метод

Delete the specified model.
public Delete ( User model ) : bool
model GestUAB.Models.User /// If set to true model. ///
Результат bool

Delete() публичный Метод

Delete the specified id.
public Delete ( string id ) : bool
id string /// If set to true identifier. ///
Результат bool

Read() публичный Метод

Read the specified id.
public Read ( System.Guid id ) : User
id System.Guid /// Identifier. ///
Результат GestUAB.Models.User

Read() публичный Метод

Read the specified id.
public Read ( string id ) : User
id string /// Identifier. ///
Результат GestUAB.Models.User

ReadAll() публичный Метод

Reads all.
public ReadAll ( ) : IQueryable
Результат IQueryable

Update() публичный Метод

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. ///
Результат bool

Update() публичный Метод

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. ///
Результат bool

UserDataAccess() публичный Метод

Initializes a new instance of the GestUAB.DataAccess.UserDataAccess class.
public UserDataAccess ( ) : System
Результат System

Validate() публичный Метод

public Validate ( string username, string password ) : Guid?
username string
password string
Результат Guid?