C# Class DataAccessLayer.DataBase

Inheritance: IDataAccessLayer
Datei anzeigen Open project: sstuteam/Gimble Class Usage Examples

Public Methods

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

public CreateAccount ( Account account ) : bool
account Entities.Account
return bool

CreateAdmin() public method

public CreateAdmin ( Account account ) : void
account Entities.Account
return void

CreateComment() public method

public CreateComment ( Comment comment ) : bool
comment Entities.Comment
return bool

CreatePost() public method

public CreatePost ( Post post ) : bool
post Entities.Post
return bool

DataBase() public method

public DataBase ( ) : System
return System

DeleteAccount() public method

public DeleteAccount ( string name ) : bool
name string
return bool

DeleteComment() public method

public DeleteComment ( System.Guid comid ) : void
comid System.Guid
return void

GetAccountById() public method

public GetAccountById ( System.Guid id ) : Account
id System.Guid
return Entities.Account

GetAccountByLogin() public method

public GetAccountByLogin ( string username, bool checkExisting ) : Account
username string
checkExisting bool
return Entities.Account

GetAllAccounts() public method

public GetAllAccounts ( ) : IEnumerable
return IEnumerable

GetAllPosts() public method

public GetAllPosts ( ) : List
return List

GetAllRoles() public method

public GetAllRoles ( ) : string[]
return string[]

GetComents() public method

public GetComents ( System.Guid postId ) : List
postId System.Guid
return List

GetIdByName() public method

public GetIdByName ( string login ) : System.Guid
login string
return System.Guid

GetLikedByUser() public method

public GetLikedByUser ( string modelName ) : IEnumerable
modelName string
return IEnumerable

GetLikes() public method

public GetLikes ( System.Guid postId, System.Guid accountId ) : int>.Dictionary
postId System.Guid
accountId System.Guid
return int>.Dictionary

GetPost() public method

public GetPost ( System.Guid postId ) : Post
postId System.Guid
return Entities.Post

GetRolesOfAccounts() public method

public GetRolesOfAccounts ( ) : string[]>.Dictionary
return string[]>.Dictionary

NameById() public method

public NameById ( System.Guid accountId ) : string
accountId System.Guid
return string

RegisterRoles() public method

public RegisterRoles ( ) : int
return int

SetLike() public method

public SetLike ( System.Guid postId, System.Guid accountId ) : bool
postId System.Guid
accountId System.Guid
return bool

UpdateAvatar() public method

public UpdateAvatar ( System.Guid accountId, byte Image, string mimeType ) : bool
accountId System.Guid
Image byte
mimeType string
return bool

UpdateCityAndCountry() public method

public UpdateCityAndCountry ( System.Guid id, string newCity, string newCountry ) : bool
id System.Guid
newCity string
newCountry string
return bool

UpdateMail() public method

public UpdateMail ( System.Guid id, string newMail ) : bool
id System.Guid
newMail string
return bool

UpdateName() public method

public UpdateName ( System.Guid id, string newName ) : bool
id System.Guid
newName string
return bool

UpdatePassword() public method

public UpdatePassword ( System.Guid id, string password ) : bool
id System.Guid
password string
return bool

UpdateRole() public method

public UpdateRole ( System.Guid accountId, int roleCode ) : bool
accountId System.Guid
roleCode int
return bool