Table of Contents

Class SiteDataRaw

Namespace
ToSic.Sxc.DataSources.Internal
Assembly
ToSic.Sxc.dll

Internal class to hold all the information about the site, until it's converted to an IEntity in the Sites DataSource.

For detailed documentation, check the docs of the underlying objects:

Important: this is an internal object. We're just including in in the docs to better understand where the properties come from. We'll probably move it to another namespace some day.

[InternalApi_DoNotUse_MayChangeWithoutNotice]
public class SiteDataRaw
Inheritance
SiteDataRaw

Remarks

Make sure the property names never change, as they are critical for the created Entity.

Properties

ContentAppId

The Content App.

public int ContentAppId { get; set; }

Property Value

int

Created

The site creation date/time.

  • In Dnn it's from PortalInfo.CreatedOnDate
  • in Oqtane it's from Site.CreatedOn
public DateTime Created { get; set; }

Property Value

DateTime

DefaultLanguage

The site Culture Code.

  • In Dnn it's from PortalInfo.CultureCode
  • in Oqtane it's from Site.CultureCode
public string DefaultLanguage { get; set; }

Property Value

string

Guid

The site GUID.

  • In Dnn it's from PortalInfo.GUID
  • In Oqtane it's Guid.Empty as Oqtane doesn't have site GUIDs
public Guid Guid { get; set; }

Property Value

Guid

Id

The site ID.

  • In Dnn it's from PortalInfo.PortalID
  • In Oqtane it's Site.SiteId
public int Id { get; set; }

Property Value

int

Languages

The site languages, comma separated. Can be empty ever if a DefaultLanguage is set, if the site itself is not multi-language.

public string Languages { get; set; }

Property Value

string

Modified

The site modification date/time.

  • In Dnn it's from PortalInfo.LastModifiedOnDate
  • in Oqtane it's from Site.ModifiedOn
public DateTime Modified { get; set; }

Property Value

DateTime

Name

The site name.

  • In Dnn it's from PageInfo.PortalName
  • in Oqtane it's from Site.Name
public string Name { get; set; }

Property Value

string

PrimaryAppId

The (technical) primary App, which contains things such as site metadata.

public int PrimaryAppId { get; set; }

Property Value

int

Url

The public url to this site (without any trailing slashes)

  • In Dnn it's from PortalAliasInfo.FullUrl (last slash removed)
  • in Oqtane it's a combination of protocol, site-alias and path
public string Url { get; set; }

Property Value

string

ZoneId

public int ZoneId { get; set; }

Property Value

int

Methods

Attributes(RawConvertOptions)

Data but without Id, Guid, Created, Modified

public IDictionary<string, object> Attributes(RawConvertOptions options)

Parameters

options RawConvertOptions

Returns

IDictionary<string, object>