C# Class Galileo.Database.DatabaseRepository

Show file Open project: scbrady/Galileo Class Usage Examples

Public Methods

Method Description
CreateComment ( string commenter_id, string comment, bool hidden ) : int
DatabaseRepository ( ) : System
DeleteAllMembers ( int projectIds ) : void
DeleteComment ( int comment_id ) : void
GetAllUsers ( ) : List
GetComment ( int comment_id ) : Comment
GetComments ( string userId ) : List
GetCourses ( string userId ) : List
GetEntriesForCourse ( int courseId ) : List
GetLeaderProjects ( string leaderId ) : List
GetMinions ( string userId, bool isTeacher ) : List
GetProjects ( int course_id ) : List
GetUser ( string userId ) : User
GetUserEntries ( string userId ) : List
GetUsersInCourse ( int course_id ) : List
GetUsersInProject ( int projectId ) : List
GetUsersInTeam ( int teamId ) : List
GetUsersWithTeams ( int courseId ) : List
GetUsersWithoutTeams ( int courseId ) : List
InsertProjectManager ( string userId, int projectIds ) : void
InsertTeamMembers ( List teams ) : void
LinkComment ( int commentId, string recipients ) : void

Method Details

CreateComment() public method

public CreateComment ( string commenter_id, string comment, bool hidden ) : int
commenter_id string
comment string
hidden bool
return int

DatabaseRepository() public method

public DatabaseRepository ( ) : System
return System

DeleteAllMembers() public method

public DeleteAllMembers ( int projectIds ) : void
projectIds int
return void

DeleteComment() public method

public DeleteComment ( int comment_id ) : void
comment_id int
return void

GetAllUsers() public method

public GetAllUsers ( ) : List
return List

GetComment() public method

public GetComment ( int comment_id ) : Comment
comment_id int
return Galileo.Models.Comment

GetComments() public method

public GetComments ( string userId ) : List
userId string
return List

GetCourses() public method

public GetCourses ( string userId ) : List
userId string
return List

GetEntriesForCourse() public method

public GetEntriesForCourse ( int courseId ) : List
courseId int
return List

GetLeaderProjects() public method

public GetLeaderProjects ( string leaderId ) : List
leaderId string
return List

GetMinions() public method

public GetMinions ( string userId, bool isTeacher ) : List
userId string
isTeacher bool
return List

GetProjects() public method

public GetProjects ( int course_id ) : List
course_id int
return List

GetUser() public method

public GetUser ( string userId ) : User
userId string
return Galileo.Models.User

GetUserEntries() public method

public GetUserEntries ( string userId ) : List
userId string
return List

GetUsersInCourse() public method

public GetUsersInCourse ( int course_id ) : List
course_id int
return List

GetUsersInProject() public method

public GetUsersInProject ( int projectId ) : List
projectId int
return List

GetUsersInTeam() public method

public GetUsersInTeam ( int teamId ) : List
teamId int
return List

GetUsersWithTeams() public method

public GetUsersWithTeams ( int courseId ) : List
courseId int
return List

GetUsersWithoutTeams() public method

public GetUsersWithoutTeams ( int courseId ) : List
courseId int
return List

InsertProjectManager() public method

public InsertProjectManager ( string userId, int projectIds ) : void
userId string
projectIds int
return void

InsertTeamMembers() public method

public InsertTeamMembers ( List teams ) : void
teams List
return void

LinkComment() public method

public LinkComment ( int commentId, string recipients ) : void
commentId int
recipients string
return void