C# Class Rock.Data.RockUdfHelper

pattern from https://github.com/divega/UdfCodeFirstSample
Datei anzeigen Open project: NewSpring/Rock

Public Methods

Method Description
ufnCrm_GetFamilyTitle ( RockContext rockContext, int PersonId, int GroupId, string GroupPersonIds, bool UseNickName ) : string

calls database TVF function ufnCrm_GetFamilyTitle. Usage: string familyTitle = RockUdfHelper.ufnCrm_GetFamilyTitle( rockContext, personId, groupId, commaPersonIds, true );

Private Methods

Method Description
ufnCrm_GetAddress ( int PersonId, string AddressType, string AddressComponent ) : string
ufnGroup_GetGeofencingGroupNames ( int PersonId, int groupTypeId ) : string

Method Details

ufnCrm_GetFamilyTitle() public static method

calls database TVF function ufnCrm_GetFamilyTitle. Usage: string familyTitle = RockUdfHelper.ufnCrm_GetFamilyTitle( rockContext, personId, groupId, commaPersonIds, true );
public static ufnCrm_GetFamilyTitle ( RockContext rockContext, int PersonId, int GroupId, string GroupPersonIds, bool UseNickName ) : string
rockContext RockContext The rock context.
PersonId int The PersonId. NULL means use GroupId parameter
GroupId int The GroupId of the Family. NULL means use PersonId parameter
GroupPersonIds string If GroupId is specified, set this as a comma-delimited list of PersonIds that you want to limit the family members to. NULL means don't restrict.
UseNickName bool if set to true [use nick name].
return string