Class CountryInfo
- Namespace
- CMS.Globalization
- Assembly
- CMS.Globalization.dll
CountryInfo data container class.
[InfoCache(InfoCacheBy.ID|InfoCacheBy.Name, LoadEagerly = true, Priority = InfoCachePriority.NotRemovable)]
public class CountryInfo : AbstractInfo<CountryInfo, ICountryInfoProvider>, IExtensible, IInfo, IAdvancedDataContainer, ICMSObject, IHierarchicalDataContainer, IDataContainer, ISimpleDataContainer, IVirtualHierarchicalObject, IHierarchicalObject, INameIndexable, IMacroObject, IInfoWithId, IInfoWithName
- Inheritance
-
objectCountryInfo
- Implements
- Inherited Members
- Extension Methods
Constructors
CountryInfo()
Constructor - Creates an empty CountryInfo object.
public CountryInfo()
CountryInfo(DataRow)
Constructor - Creates a new CountryInfo object from the given DataRow.
public CountryInfo(DataRow dr)
Parameters
dr
DataRow
Fields
OBJECT_TYPE
Object type
public const string OBJECT_TYPE = "cms.country"
Field Value
- string
TYPEINFO
Type information.
public static ObjectTypeInfo TYPEINFO
Field Value
Properties
CountryDisplayName
Country display name.
[DatabaseField]
public virtual string CountryDisplayName { get; set; }
Property Value
- string
CountryGUID
Country GUID.
[DatabaseField]
public virtual Guid CountryGUID { get; set; }
Property Value
- Guid
CountryID
Country ID.
[DatabaseField]
public virtual int CountryID { get; set; }
Property Value
- int
CountryLastModified
Object last modified.
[DatabaseField]
public virtual DateTime CountryLastModified { get; set; }
Property Value
- DateTime
CountryName
Country code name.
[DatabaseField]
public virtual string CountryName { get; set; }
Property Value
- string
CountryThreeLetterCode
Country three-letter code.
[DatabaseField]
public virtual string CountryThreeLetterCode { get; set; }
Property Value
- string
CountryTwoLetterCode
Country two-letter code.
[DatabaseField]
public virtual string CountryTwoLetterCode { get; set; }
Property Value
- string
Methods
DeleteObject()
Deletes the object using appropriate provider.
protected override void DeleteObject()
InsertAsCloneInternal(CloneSettings, CloneResult, BaseInfo)
Inserts cloned object to DB.
protected override void InsertAsCloneInternal(CloneSettings settings, CloneResult result, BaseInfo originalObject)
Parameters
settings
CloneSettingsCloning settings
result
CloneResultCloning result
originalObject
BaseInfoOriginal source BaseInfo (object being cloned)
SetObject()
Updates the object using appropriate provider.
protected override void SetObject()