C# Class DBLibrary.User

Datei anzeigen Open project: VlasyukTanya/CTS Class Usage Examples

Public Methods

Method Description
AddContact ( string service, string contact ) : void
ChangePassword ( string passwd ) : User
CheckIfExists ( ) : bool
Create ( ) : User
Delete ( ) : void
DeleteByID ( int id ) : void
Get ( int id ) : User
GetTutorsDataTable ( DBDriver db ) : DataTable
GetUsersDataTable ( DBDriver db ) : DataTable
SignIn ( ) : bool
ToString ( ) : string
Update ( ) : User
UpdateTutor ( ) : void
User ( DBDriver db ) : System
User ( DBDriver db, int id, string name, string passwd, string realName, string email, AdditionalContacts additionalContacts, string registrationDate, int roleId, int groupId ) : System
User ( DBDriver db, int id, string name, string passwd, string realName, string email, AdditionalContacts additionalContacts, string lastLoginDate, string registrationDate, string lastEditDate, int roleId, int groupId ) : System
User ( DBDriver db, string name, string passwd, string realName, string email, AdditionalContacts additionalContacts, int roleId, int groupId ) : System

Method Details

AddContact() public method

public AddContact ( string service, string contact ) : void
service string
contact string
return void

ChangePassword() public method

public ChangePassword ( string passwd ) : User
passwd string
return User

CheckIfExists() public method

public CheckIfExists ( ) : bool
return bool

Create() public method

public Create ( ) : User
return User

Delete() public method

public Delete ( ) : void
return void

DeleteByID() public method

public DeleteByID ( int id ) : void
id int
return void

Get() public method

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

GetTutorsDataTable() public static method

public static GetTutorsDataTable ( DBDriver db ) : DataTable
db DBDriver
return System.Data.DataTable

GetUsersDataTable() public static method

public static GetUsersDataTable ( DBDriver db ) : DataTable
db DBDriver
return System.Data.DataTable

SignIn() public method

public SignIn ( ) : bool
return bool

ToString() public method

public ToString ( ) : string
return string

Update() public method

public Update ( ) : User
return User

UpdateTutor() public method

public UpdateTutor ( ) : void
return void

User() public method

public User ( DBDriver db ) : System
db DBDriver
return System

User() public method

public User ( DBDriver db, int id, string name, string passwd, string realName, string email, AdditionalContacts additionalContacts, string registrationDate, int roleId, int groupId ) : System
db DBDriver
id int
name string
passwd string
realName string
email string
additionalContacts AdditionalContacts
registrationDate string
roleId int
groupId int
return System

User() public method

public User ( DBDriver db, int id, string name, string passwd, string realName, string email, AdditionalContacts additionalContacts, string lastLoginDate, string registrationDate, string lastEditDate, int roleId, int groupId ) : System
db DBDriver
id int
name string
passwd string
realName string
email string
additionalContacts AdditionalContacts
lastLoginDate string
registrationDate string
lastEditDate string
roleId int
groupId int
return System

User() public method

public User ( DBDriver db, string name, string passwd, string realName, string email, AdditionalContacts additionalContacts, int roleId, int groupId ) : System
db DBDriver
name string
passwd string
realName string
email string
additionalContacts AdditionalContacts
roleId int
groupId int
return System