External C# Function: BaileyWeb.University.Data.People

The External C# Function class People contains the following public methods used across the Inline C# Functions related to the output of people data (Page Datafolder BaileyWeb.University.People) as XML.

Files

The following files are supplied with the University Package:

  • ~/App_Code/BaileyWeb/University/Data/People.cs

Methods

Method: Description: Output type:
ListPeople() Outputs a collection of flat record nodes. Used to show a list of people on the website. XElement
ListPeopleEnumerable() Outputs a collection of flat record nodes. Used to show a list of people on the website, or for searches. IEnumerable<XElement>
ListPeopleFromCSV(string PeopleCSV) Outputs a collection of flat record nodes from a CSV list of GUID Id values. Used to show sub-lists of people within a record page on the website. XElement
GetPersonConcise(Guid PersonId) Outputs a single flat record node. May only contain key fields from the record. Used to show sub-record of a person within a record page on the website. XElement
GetPersonFull(Guid PersonId) Outputs a single nested record node. Contains all fields from the record, with Data References often shown in sub-nodes. Used to show record of a person on the website. XElement
AssembleDisplayNameLong(string Honorific, string Forename, string Surname, string PostNominalLetters) Combines input parameters and outputs the full name of a person, including honorific and post-nominal letters. String
AssemblePersonURL(string UserId) Combines input parameters and outputs the URL of a person. String

Updated: 22 January 2022