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

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

Files

The following files are supplied with the University Package:

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

Methods

Method: Description: Output type:
ListLocations() Outputs a collection of flat record nodes. Used to show a list of locations on the website. XElement
ListLocationsEnumerable() Outputs a collection of flat record nodes. Used to show a list of locations on the website, or for searches. IEnumerable<XElement>
ListLocationsAndBuildings() Outputs a collection of nested record nodes. Used to show a list of locations and buildings on the website. XElement
ListLocationsAndBuildingsEnumerable() Outputs a collection of nested record nodes. Used to show a list of locations and buildings on the website. IEnumerable<XElement>
ListLocationsFromCSV(string LocationsCSV) Outputs a collection of flat record nodes from a CSV list of GUID Id values. Used to show sub-lists of locations within a record page on the website. XElement
GetLocationConcise(Guid LocationId) Outputs a single flat record node. May only contain key fields from the record. Used to show sub-record of a location within a record page on the website. XElement
GetLocationFull(Guid LocationId) 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 location on the website. XElement

Updated: 22 January 2022