AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

DomainLanguageHelper..::..GetDefaultDomain Method

Returns the framework's default Domain: the lowest-DomainID active domain, falling back to the lowest-DomainID domain unconditionally if none are active. Used as the safety-net resolution when no domain matches the current request.

Namespace:  AdvantageCMS.Core.Utils
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


public static Domain GetDefaultDomain(
	SQL currentSql
)

Parameters

currentSql
Type: AdvantageCMS.Data..::..SQL
The current SQL connection.

Return Value

The default Domain, or null if the domain list is empty/unreadable.