C# Class PAZMySQL.UserMapper

Inheritance: Mapper
Mostra file Open project: PAZ-MI4Ie/PAZ Class Usage Examples

Public Methods

Method Description
Delete ( ) : bool
Delete ( List users ) : bool
Delete ( User user ) : bool
Delete ( int id ) : bool
Find ( int id ) : User
FindAll ( ) : List
FindWithDuplicateCheck ( int studentnumber, string email ) : System.Boolean
ProcessRow ( User user, MySqlDataReader Reader ) : User
ProcessRow ( User user, MySqlDataReader Reader, int offset ) : User
Save ( User user ) : void
UserMapper ( MysqlDb db ) : System

Method Details

Delete() public method

public Delete ( ) : bool
return bool

Delete() public method

public Delete ( List users ) : bool
users List
return bool

Delete() public method

public Delete ( User user ) : bool
user User
return bool

Delete() public method

public Delete ( int id ) : bool
id int
return bool

Find() public method

public Find ( int id ) : User
id int
return User

FindAll() public method

public FindAll ( ) : List
return List

FindWithDuplicateCheck() public method

public FindWithDuplicateCheck ( int studentnumber, string email ) : System.Boolean
studentnumber int
email string
return System.Boolean

ProcessRow() public method

public ProcessRow ( User user, MySqlDataReader Reader ) : User
user User
Reader MySql.Data.MySqlClient.MySqlDataReader
return User

ProcessRow() public method

public ProcessRow ( User user, MySqlDataReader Reader, int offset ) : User
user User
Reader MySql.Data.MySqlClient.MySqlDataReader
offset int
return User

Save() public method

public Save ( User user ) : void
user User
return void

UserMapper() public method

public UserMapper ( MysqlDb db ) : System
db MysqlDb
return System