C# Class DataAccessLayer.DataBase

Inheritance: IDataAccessLayer
Afficher le fichier Open project: sstuteam/Gimble Class Usage Examples

Méthodes publiques

Méthode Description
CreateAccount ( Account account ) : bool
CreateAdmin ( Account account ) : void
CreateComment ( Comment comment ) : bool
CreatePost ( Post post ) : bool
DataBase ( ) : System
DeleteAccount ( string name ) : bool
DeleteComment ( System.Guid comid ) : void
GetAccountById ( System.Guid id ) : Account
GetAccountByLogin ( string username, bool checkExisting ) : Account
GetAllAccounts ( ) : IEnumerable
GetAllPosts ( ) : List
GetAllRoles ( ) : string[]
GetComents ( System.Guid postId ) : List
GetIdByName ( string login ) : System.Guid
GetLikedByUser ( string modelName ) : IEnumerable
GetLikes ( System.Guid postId, System.Guid accountId ) : int>.Dictionary
GetPost ( System.Guid postId ) : Post
GetRolesOfAccounts ( ) : string[]>.Dictionary
NameById ( System.Guid accountId ) : string
RegisterRoles ( ) : int
SetLike ( System.Guid postId, System.Guid accountId ) : bool
UpdateAvatar ( System.Guid accountId, byte Image, string mimeType ) : bool
UpdateCityAndCountry ( System.Guid id, string newCity, string newCountry ) : bool
UpdateMail ( System.Guid id, string newMail ) : bool
UpdateName ( System.Guid id, string newName ) : bool
UpdatePassword ( System.Guid id, string password ) : bool
UpdateRole ( System.Guid accountId, int roleCode ) : bool

Method Details

CreateAccount() public méthode

public CreateAccount ( Account account ) : bool
account Entities.Account
Résultat bool

CreateAdmin() public méthode

public CreateAdmin ( Account account ) : void
account Entities.Account
Résultat void

CreateComment() public méthode

public CreateComment ( Comment comment ) : bool
comment Entities.Comment
Résultat bool

CreatePost() public méthode

public CreatePost ( Post post ) : bool
post Entities.Post
Résultat bool

DataBase() public méthode

public DataBase ( ) : System
Résultat System

DeleteAccount() public méthode

public DeleteAccount ( string name ) : bool
name string
Résultat bool

DeleteComment() public méthode

public DeleteComment ( System.Guid comid ) : void
comid System.Guid
Résultat void

GetAccountById() public méthode

public GetAccountById ( System.Guid id ) : Account
id System.Guid
Résultat Entities.Account

GetAccountByLogin() public méthode

public GetAccountByLogin ( string username, bool checkExisting ) : Account
username string
checkExisting bool
Résultat Entities.Account

GetAllAccounts() public méthode

public GetAllAccounts ( ) : IEnumerable
Résultat IEnumerable

GetAllPosts() public méthode

public GetAllPosts ( ) : List
Résultat List

GetAllRoles() public méthode

public GetAllRoles ( ) : string[]
Résultat string[]

GetComents() public méthode

public GetComents ( System.Guid postId ) : List
postId System.Guid
Résultat List

GetIdByName() public méthode

public GetIdByName ( string login ) : System.Guid
login string
Résultat System.Guid

GetLikedByUser() public méthode

public GetLikedByUser ( string modelName ) : IEnumerable
modelName string
Résultat IEnumerable

GetLikes() public méthode

public GetLikes ( System.Guid postId, System.Guid accountId ) : int>.Dictionary
postId System.Guid
accountId System.Guid
Résultat int>.Dictionary

GetPost() public méthode

public GetPost ( System.Guid postId ) : Post
postId System.Guid
Résultat Entities.Post

GetRolesOfAccounts() public méthode

public GetRolesOfAccounts ( ) : string[]>.Dictionary
Résultat string[]>.Dictionary

NameById() public méthode

public NameById ( System.Guid accountId ) : string
accountId System.Guid
Résultat string

RegisterRoles() public méthode

public RegisterRoles ( ) : int
Résultat int

SetLike() public méthode

public SetLike ( System.Guid postId, System.Guid accountId ) : bool
postId System.Guid
accountId System.Guid
Résultat bool

UpdateAvatar() public méthode

public UpdateAvatar ( System.Guid accountId, byte Image, string mimeType ) : bool
accountId System.Guid
Image byte
mimeType string
Résultat bool

UpdateCityAndCountry() public méthode

public UpdateCityAndCountry ( System.Guid id, string newCity, string newCountry ) : bool
id System.Guid
newCity string
newCountry string
Résultat bool

UpdateMail() public méthode

public UpdateMail ( System.Guid id, string newMail ) : bool
id System.Guid
newMail string
Résultat bool

UpdateName() public méthode

public UpdateName ( System.Guid id, string newName ) : bool
id System.Guid
newName string
Résultat bool

UpdatePassword() public méthode

public UpdatePassword ( System.Guid id, string password ) : bool
id System.Guid
password string
Résultat bool

UpdateRole() public méthode

public UpdateRole ( System.Guid accountId, int roleCode ) : bool
accountId System.Guid
roleCode int
Résultat bool