C# Класс iServe.Models.Need

Наследование: IAuditable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
GetAllByChurchID ( int churchID ) : NeedQuery
GetAllByUser ( int userID, string>.Dictionary &userNeedStatuses ) : List
GetByKeyAndUserID ( int iD, int userID ) : Need

Gets the need with the specified id which was submitted by the specified user id.

GetByUserID ( int userID ) : IQueryable

Gets all the needs that are submitted by the specified user.

GetInvolvementCounts ( List needs ) : InvolvementCount>.Dictionary

Takes a list of Needs and returns a dictionary of InvolvementCount objects with NeedID as key

Приватные методы

Метод Описание
OnCreated ( ) : void

Описание методов

GetAllByChurchID() публичный Метод

public GetAllByChurchID ( int churchID ) : NeedQuery
churchID int
Результат NeedQuery

GetAllByUser() публичный Метод

public GetAllByUser ( int userID, string>.Dictionary &userNeedStatuses ) : List
userID int
userNeedStatuses string>.Dictionary
Результат List

GetByKeyAndUserID() публичный Метод

Gets the need with the specified id which was submitted by the specified user id.
public GetByKeyAndUserID ( int iD, int userID ) : Need
iD int /// The id of the need. ///
userID int /// The id of the user that submitted the need. ///
Результат Need

GetByUserID() публичный Метод

Gets all the needs that are submitted by the specified user.
public GetByUserID ( int userID ) : IQueryable
userID int /// The user id of the user that submitted the need. ///
Результат IQueryable

GetInvolvementCounts() публичный Метод

Takes a list of Needs and returns a dictionary of InvolvementCount objects with NeedID as key
public GetInvolvementCounts ( List needs ) : InvolvementCount>.Dictionary
needs List
Результат InvolvementCount>.Dictionary