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
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
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
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
Id
The site ID.
- In Dnn it's from
PortalInfo.PortalID
- In Oqtane it's
Site.SiteId
public int Id { get; set; }
Property Value
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
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
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
PrimaryAppId
The (technical) primary App, which contains things such as site metadata.
public int PrimaryAppId { get; set; }
Property Value
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
ZoneId
public int ZoneId { get; set; }
Property Value
Methods
Attributes(RawConvertOptions)
Data but without Id, Guid, Created, Modified
public IDictionary<string, object> Attributes(RawConvertOptions options)
Parameters
options
RawConvertOptions