C# 클래스 Rock.Model.GroupMemberService

The data access/service class for Rock.Model.GroupMember entity objects.
파일 보기 프로젝트 열기: NewSpring/Rock 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

CreateKnownRelationship() 공개 메소드

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.
리턴 void

DeleteKnownRelationship() 공개 메소드

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.
리턴 void

Get() 공개 메소드

Gets the specified unique identifier.
public Get ( System.Guid guid ) : GroupMember
guid System.Guid The unique identifier.
리턴 GroupMember

Get() 공개 메소드

Gets the specified identifier.
public Get ( int id ) : GroupMember
id int The identifier.
리턴 GroupMember

GetByGroupGuid() 공개 메소드

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.
리턴 IQueryable

GetByGroupId() 공개 메소드

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.
리턴 IQueryable

GetByGroupIdAndPersonId() 공개 메소드

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.
리턴 IQueryable

GetByGroupIdAndPersonIdAndGroupRoleId() 공개 메소드

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.
리턴 GroupMember

GetByGroupRoleId() 공개 메소드

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.
리턴 IQueryable

GetByPersonId() 공개 메소드

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.
리턴 IQueryable

GetFirstNames() 공개 메소드

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.
리턴 IEnumerable

GetFirstNames() 공개 메소드

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].
리턴 IEnumerable

GetInverseRelationship() 공개 메소드

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.
리턴 GroupMember

GetKnownRelationship() 공개 메소드

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.
리턴 IQueryable

GetLeaders() 공개 메소드

Gets the active leaders of the group
public GetLeaders ( int groupId ) : IQueryable
groupId int The group identifier.
리턴 IQueryable

GetPerson() 공개 메소드

Gets the person.
public GetPerson ( int groupMemberId ) : Person
groupMemberId int The group member identifier.
리턴 Person

GetPersonIdsByHomeAddress() 공개 메소드

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
리턴 IQueryable

Queryable() 공개 메소드

Returns a queryable collection of GroupMembers, excluding deceased group members
public Queryable ( ) : IQueryable
리턴 IQueryable

Queryable() 공개 메소드

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.
리턴 IQueryable

Queryable() 공개 메소드

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

Queryable() 공개 메소드

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.
리턴 IQueryable