C# Класс Rock.Model.GroupTypeService

Data access/service class for Rock.Model.GroupType entity objects. This class extends Rock.Data.Service.
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
Delete ( GroupType item ) : bool

Deletes the specified item.

GetAllAssociatedDescendents ( Guid parentGroupTypeGuid ) : IEnumerable

Returns an enumerable collection of GroupType that are descendants of a specified group type. WARNING: This will fail if their is a circular reference in the GroupTypeAssociation table.

GetAllAssociatedDescendents ( int parentGroupTypeId ) : IEnumerable

Returns an enumerable collection of GroupType that are descendants of a specified group type. WARNING: This will fail (max recursion) if there is a circular reference in the GroupTypeAssociation table.

GetAllAssociatedDescendentsPath ( int parentGroupTypeId ) : IEnumerable

Returns an enumerable collection of GroupTypePath objects that are associated descendants of a specified group type. WARNING: This will fail if there is a circular reference in the GroupTypeAssociation table.

GetAllCheckinGroupTypePaths ( ) : IEnumerable

Gets all checkin group type paths.

GetByDefaultGroupRoleId ( int defaultGroupRoleId ) : IEnumerable

Returns an enumerable collection of Rock.Model.GroupType entities by the Id of their Rock.Model.GroupTypeRole.

GetChildGroupTypes ( Guid groupTypeGuid ) : IQueryable

Gets the child group types.

GetChildGroupTypes ( int groupTypeId ) : IQueryable

Gets the child group types.

GetGuid ( int id ) : Guid?

Gets the Guid for the GroupType that has the specified Id

GetParentGroupTypes ( int groupTypeId ) : IQueryable

Gets the parent group types.

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

Delete() публичный метод

Deletes the specified item.
public Delete ( GroupType item ) : bool
item GroupType The item.
Результат bool

GetAllAssociatedDescendents() публичный метод

Returns an enumerable collection of GroupType that are descendants of a specified group type. WARNING: This will fail if their is a circular reference in the GroupTypeAssociation table.
public GetAllAssociatedDescendents ( Guid parentGroupTypeGuid ) : IEnumerable
parentGroupTypeGuid Guid The parent group type unique identifier.
Результат IEnumerable

GetAllAssociatedDescendents() публичный метод

Returns an enumerable collection of GroupType that are descendants of a specified group type. WARNING: This will fail (max recursion) if there is a circular reference in the GroupTypeAssociation table.
public GetAllAssociatedDescendents ( int parentGroupTypeId ) : IEnumerable
parentGroupTypeId int The parent group type identifier.
Результат IEnumerable

GetAllAssociatedDescendentsPath() публичный метод

Returns an enumerable collection of GroupTypePath objects that are associated descendants of a specified group type. WARNING: This will fail if there is a circular reference in the GroupTypeAssociation table.
public GetAllAssociatedDescendentsPath ( int parentGroupTypeId ) : IEnumerable
parentGroupTypeId int The parent group type identifier.
Результат IEnumerable

GetAllCheckinGroupTypePaths() публичный метод

Gets all checkin group type paths.
public GetAllCheckinGroupTypePaths ( ) : IEnumerable
Результат IEnumerable

GetByDefaultGroupRoleId() публичный метод

Returns an enumerable collection of Rock.Model.GroupType entities by the Id of their Rock.Model.GroupTypeRole.
public GetByDefaultGroupRoleId ( int defaultGroupRoleId ) : IEnumerable
defaultGroupRoleId int An representing the Id of the to search by.
Результат IEnumerable

GetChildGroupTypes() публичный метод

Gets the child group types.
public GetChildGroupTypes ( Guid groupTypeGuid ) : IQueryable
groupTypeGuid Guid The group type unique identifier.
Результат IQueryable

GetChildGroupTypes() публичный метод

Gets the child group types.
public GetChildGroupTypes ( int groupTypeId ) : IQueryable
groupTypeId int The group type identifier.
Результат IQueryable

GetGuid() публичный метод

Gets the Guid for the GroupType that has the specified Id
public GetGuid ( int id ) : Guid?
id int The identifier.
Результат Guid?

GetParentGroupTypes() публичный метод

Gets the parent group types.
public GetParentGroupTypes ( int groupTypeId ) : IQueryable
groupTypeId int The group type identifier.
Результат IQueryable