C# Class MonoSoftware.MonoX.Samples.Repositories.PopularGroupRepository

Repository for social network popular group-related functionality
Inheritance: MonoSoftware.MonoX.Repositories.GroupRepository
Afficher le fichier Open project: MonoSoftware/MonoX-Sample-Solution

Méthodes publiques

Méthode Description
GetInstance ( ) : PopularGroupRepository

Returns an instance of the repository class, wraps the constructor to allow for encapsulated instatiation, so the logic in he constructor can be changed without changing the client code. Reference: http://www.netobjectives.com/ezines/ez0405NetObj_PerspectivesOfUseVsCreationInOODesign.pdf

GetPopularGroups ( string category, System.Guid categoryId, int pageNumber, int pageSize, int &recordCount ) : List

Retrieves a list of groups matching the criteria specified via method parameters.

Méthodes protégées

Méthode Description
PopularGroupRepository ( ) : System

Constructor.

Method Details

GetInstance() public static méthode

Returns an instance of the repository class, wraps the constructor to allow for encapsulated instatiation, so the logic in he constructor can be changed without changing the client code. Reference: http://www.netobjectives.com/ezines/ez0405NetObj_PerspectivesOfUseVsCreationInOODesign.pdf
public static GetInstance ( ) : PopularGroupRepository
Résultat PopularGroupRepository

GetPopularGroups() public méthode

Retrieves a list of groups matching the criteria specified via method parameters.
public GetPopularGroups ( string category, System.Guid categoryId, int pageNumber, int pageSize, int &recordCount ) : List
category string Category name.
categoryId System.Guid Category Id
pageNumber int Page number.
pageSize int Page size.
recordCount int Record count.
Résultat List

PopularGroupRepository() protected méthode

Constructor.
protected PopularGroupRepository ( ) : System
Résultat System