C# Class Rock.Model.GroupMemberService

The data access/service class for Rock.Model.GroupMember entity objects.
Afficher le fichier Open project: NewSpring/Rock Class Usage Examples

Méthodes publiques

Méthode Description
CreateKnownRelationship ( int personId, int relatedPersonId, int relationshipRoleId ) : void

Creates the known relationship.

DeleteKnownRelationship ( int personId, int relatedPersonId, int relationshipRoleId ) : void

Deletes the known relationship.

Get ( System.Guid guid ) : GroupMember

Gets the specified unique identifier.

Get ( int id ) : GroupMember

Gets the specified identifier.

GetByGroupGuid ( System.Guid groupGuid, bool includeDeceased = false ) : IQueryable

Returns a queryable collection of GroupMembers who are members of a specific group.

GetByGroupId ( int groupId, bool includeDeceased = false ) : IQueryable

Returns a queryable collection of GroupMembers who are members of a specific group.

GetByGroupIdAndPersonId ( int groupId, int personId, bool includeDeceased = false ) : IQueryable

Returns a collection of Rock.Model.GroupMember">GroupMembers by the Id of the Rock.Model.Person.

GetByGroupIdAndPersonIdAndGroupRoleId ( int groupId, int personId, int groupRoleId, bool includeDeceased = false ) : GroupMember

Returns the first Rock.Model.GroupMember that mathces the Id of the Rock.Model.Group, the Id of the Rock.Model.Person, and the Id fo the Rock.Model.GroupTypeRole

In theory a maximum of one result should be returned, since there is a unique constraint on GroupId, PersonId, and GroupRoleId.

GetByGroupRoleId ( int groupRoleId, bool includeDeceased = false ) : IQueryable

Returns a queryable collection of Rock.Model.GroupMember">GroupMembers by the Id of the

GetByPersonId ( int personId ) : IQueryable

Returns a queryable collection of Rock.Model.GroupMember entities associated with a Rock.Model.Person by the Person's PersonId

GetFirstNames ( int groupId, bool includeDeceased = false ) : IEnumerable

Returns an enumerable collection of System.String objects representing the first names of each person in a Rock.Model.Group ordered by group role, age, and gender

GetFirstNames ( int groupId, bool includeDeceased, bool includeInactive ) : IEnumerable

Returns an enumerable collection of System.String objects representing the first names of each person in a Rock.Model.Group ordered by group role, age, and gender

GetInverseRelationship ( GroupMember groupMember, bool createGroup ) : GroupMember

Gets the inverse relationship. Returns the Rock.Model.GroupMember who has an inverse relationship to the provided Rock.Model.GroupMember.

In Rock, examples of inverse relationships include: Parent/Child, Can Check In/Check in By, Sibling/Sibling, Grandparent/Grandchild, etc.

GetKnownRelationship ( int personId, int relationshipRoleId ) : IQueryable

Gets all group members that have a known relationship of relationshipRoleId type with personId.

GetLeaders ( int groupId ) : IQueryable

Gets the active leaders of the group

GetPerson ( int groupMemberId ) : Person

Gets the person.

GetPersonIdsByHomeAddress ( string partialHomeAddress ) : IQueryable

Gets a list of System.Int32 PersonIds who's home address matches the given search value.

Queryable ( ) : IQueryable

Returns a queryable collection of GroupMembers, excluding deceased group members

Queryable ( bool includeDeceased ) : IQueryable

Returns a queryable collection of GroupMember's.

Queryable ( string includes ) : IQueryable

Returns a collection of all GroupMembers with eager loading of properties specfied in includes

Queryable ( string includes, bool includeDeceased ) : IQueryable

Returns a queryable collection of all GroupMembers with eager loading of properties specfied in includes

Method Details

CreateKnownRelationship() public méthode

Creates the known relationship.
public CreateKnownRelationship ( int personId, int relatedPersonId, int relationshipRoleId ) : void
personId int The person identifier.
relatedPersonId int The related person identifier.
relationshipRoleId int The relationship role identifier.
Résultat void

DeleteKnownRelationship() public méthode

Deletes the known relationship.
public DeleteKnownRelationship ( int personId, int relatedPersonId, int relationshipRoleId ) : void
personId int The person identifier.
relatedPersonId int The related person identifier.
relationshipRoleId int The relationship role identifier.
Résultat void

Get() public méthode

Gets the specified unique identifier.
public Get ( System.Guid guid ) : GroupMember
guid System.Guid The unique identifier.
Résultat GroupMember

Get() public méthode

Gets the specified identifier.
public Get ( int id ) : GroupMember
id int The identifier.
Résultat GroupMember

GetByGroupGuid() public méthode

Returns a queryable collection of GroupMembers who are members of a specific group.
public GetByGroupGuid ( System.Guid groupGuid, bool includeDeceased = false ) : IQueryable
groupGuid System.Guid A representing the Guid of a to search by.
includeDeceased bool A value indicating if deceased GroupMembers should be included. If true /// deceased group members will be included, if false deceased group members will not be included. This parameter defaults to false.
Résultat IQueryable

GetByGroupId() public méthode

Returns a queryable collection of GroupMembers who are members of a specific group.
public GetByGroupId ( int groupId, bool includeDeceased = false ) : IQueryable
groupId int A representing the Id of a to search by.
includeDeceased bool A value indicating if deceased GroupMembers should be included. If true /// deceased group members will be included, if false deceased group members will not be included. This parameter defaults to false.
Résultat IQueryable

GetByGroupIdAndPersonId() public méthode

Returns a collection of Rock.Model.GroupMember">GroupMembers by the Id of the Rock.Model.Person.
public GetByGroupIdAndPersonId ( int groupId, int personId, bool includeDeceased = false ) : IQueryable
groupId int An representing the Id of the to search by.
personId int An representing the Id of the to search by.
includeDeceased bool A value indicating if deceased GroupMembers should be included. If true /// deceased group members will be included, if false deceased group members will not be included. This parameter defaults to false.
Résultat IQueryable

GetByGroupIdAndPersonIdAndGroupRoleId() public méthode

Returns the first Rock.Model.GroupMember that mathces the Id of the Rock.Model.Group, the Id of the Rock.Model.Person, and the Id fo the Rock.Model.GroupTypeRole
In theory a maximum of one result should be returned, since there is a unique constraint on GroupId, PersonId, and GroupRoleId.
public GetByGroupIdAndPersonIdAndGroupRoleId ( int groupId, int personId, int groupRoleId, bool includeDeceased = false ) : GroupMember
groupId int An representing the Id of the to search by.
personId int An representing the Id of the to search by.
groupRoleId int A representing the Id of the to search by.
includeDeceased bool A value indicating if deceased GroupMembers should be included. If true /// deceased group members will be included, if false deceased group members will not be included. This parameter defaults to false.
Résultat GroupMember

GetByGroupRoleId() public méthode

Returns a queryable collection of Rock.Model.GroupMember">GroupMembers by the Id of the
public GetByGroupRoleId ( int groupRoleId, bool includeDeceased = false ) : IQueryable
groupRoleId int An representing the Id of the to search by.
includeDeceased bool A value indicating if deceased GroupMembers should be included. If true /// deceased group members will be included, if false deceased group members will not be included. This parameter defaults to false.
Résultat IQueryable

GetByPersonId() public méthode

Returns a queryable collection of Rock.Model.GroupMember entities associated with a Rock.Model.Person by the Person's PersonId
public GetByPersonId ( int personId ) : IQueryable
personId int An representing the Id of the to search by.
Résultat IQueryable

GetFirstNames() public méthode

Returns an enumerable collection of System.String objects representing the first names of each person in a Rock.Model.Group ordered by group role, age, and gender
public GetFirstNames ( int groupId, bool includeDeceased = false ) : IEnumerable
groupId int A representing the Id of the .
includeDeceased bool A value indicating if deceased GroupMembers should be included. If true /// deceased group members will be included, if false deceased group members will not be included. This parameter defaults to false.
Résultat IEnumerable

GetFirstNames() public méthode

Returns an enumerable collection of System.String objects representing the first names of each person in a Rock.Model.Group ordered by group role, age, and gender
public GetFirstNames ( int groupId, bool includeDeceased, bool includeInactive ) : IEnumerable
groupId int A representing the Id of the .
includeDeceased bool A value indicating if deceased GroupMembers should be included. If true /// deceased group members will be included, if false deceased group members will not be included. This parameter defaults to false.
includeInactive bool if set to true [include inactive].
Résultat IEnumerable

GetInverseRelationship() public méthode

Gets the inverse relationship. Returns the Rock.Model.GroupMember who has an inverse relationship to the provided Rock.Model.GroupMember.
In Rock, examples of inverse relationships include: Parent/Child, Can Check In/Check in By, Sibling/Sibling, Grandparent/Grandchild, etc.
public GetInverseRelationship ( GroupMember groupMember, bool createGroup ) : GroupMember
groupMember GroupMember A representing the person to find the inverse relationship for.
createGroup bool A flag indicating if a new can be created /// for the person with the inverse relationship.
Résultat GroupMember

GetKnownRelationship() public méthode

Gets all group members that have a known relationship of relationshipRoleId type with personId.
public GetKnownRelationship ( int personId, int relationshipRoleId ) : IQueryable
personId int The person identifier.
relationshipRoleId int The relationship role identifier.
Résultat IQueryable

GetLeaders() public méthode

Gets the active leaders of the group
public GetLeaders ( int groupId ) : IQueryable
groupId int The group identifier.
Résultat IQueryable

GetPerson() public méthode

Gets the person.
public GetPerson ( int groupMemberId ) : Person
groupMemberId int The group member identifier.
Résultat Person

GetPersonIdsByHomeAddress() public méthode

Gets a list of System.Int32 PersonIds who's home address matches the given search value.
public GetPersonIdsByHomeAddress ( string partialHomeAddress ) : IQueryable
partialHomeAddress string a partial address search string
Résultat IQueryable

Queryable() public méthode

Returns a queryable collection of GroupMembers, excluding deceased group members
public Queryable ( ) : IQueryable
Résultat IQueryable

Queryable() public méthode

Returns a queryable collection of GroupMember's.
public Queryable ( bool includeDeceased ) : IQueryable
includeDeceased bool A value indicating if deceased members should be included in the results. If true deceased members will /// be included, otherwise false.
Résultat IQueryable

Queryable() public méthode

Returns a collection of all GroupMembers with eager loading of properties specfied in includes
public Queryable ( string includes ) : IQueryable
includes string The includes.
Résultat IQueryable

Queryable() public méthode

Returns a queryable collection of all GroupMembers with eager loading of properties specfied in includes
public Queryable ( string includes, bool includeDeceased ) : IQueryable
includes string A containing a list of properties to be eagerly loaded.
includeDeceased bool A value indicating if deceased GroupMembers should be included. If true /// deceased group members will be included, if false deceased group members will not be included. This parameter defaults to false.
Résultat IQueryable