• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class ObjectMappingInfo

The ObjectMappingInfo class is a helper class that holds the mapping information for a particular type. This information is in two parts:

  • Information about the Database Table that the object is mapped to
  • Information about how the object is cached. For each object, when it is first accessed, reflection is used on the class and an instance of ObjectMappingInfo is created, which is cached for performance.
Inheritance
System.Object
ObjectMappingInfo
Namespace: DotNetNuke.Common.Utilities
Assembly: DotNetNuke.dll
Syntax
public class ObjectMappingInfo : object

Constructors

| Improve this Doc View Source

ObjectMappingInfo()

Initializes a new instance of the ObjectMappingInfo class. Constructs a new ObjectMappingInfo Object.

Declaration
public ObjectMappingInfo()

Properties

| Improve this Doc View Source

CacheByProperty

Gets or sets cacheByProperty gets and sets the property that is used to cache collections of the object. For example: Modules are cached by the "TabId" proeprty. Tabs are cached by the PortalId property.

Declaration
public string CacheByProperty { get; set; }
Property Value
Type Description
System.String
Remarks

If empty, a collection of all the instances of the object is cached.

| Improve this Doc View Source

CacheKey

Gets cacheKey gets the root value of the key used to identify the cached collection in the ASP.NET Cache.

Declaration
public string CacheKey { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

CacheTimeOutMultiplier

Gets or sets cacheTimeOutMultiplier gets and sets the multiplier used to determine how long the cached collection should be cached. It is multiplied by the Performance Setting - which in turn can be modified by the Host Account.

Declaration
public int CacheTimeOutMultiplier { get; set; }
Property Value
Type Description
System.Int32
Remarks

Defaults to 20.

| Improve this Doc View Source

ColumnNames

Gets columnNames gets a dictionary of Database Column Names for the Object.

Declaration
public Dictionary<string, string> ColumnNames { get; }
Property Value
Type Description
Dictionary<System.String, System.String>
| Improve this Doc View Source

ObjectType

Gets or sets objectType gets and sets the type of the object.

Declaration
public string ObjectType { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

PrimaryKey

Gets or sets primaryKey gets and sets the property of the object that corresponds to the primary key in the database.

Declaration
public string PrimaryKey { get; set; }
Property Value
Type Description
System.String
| Improve this Doc View Source

Properties

Gets properties gets a dictionary of Properties for the Object.

Declaration
public Dictionary<string, PropertyInfo> Properties { get; }
Property Value
Type Description
Dictionary<System.String, PropertyInfo>
| Improve this Doc View Source

TableName

Gets or sets tableName gets and sets the name of the database table that is used to persist the object.

Declaration
public string TableName { get; set; }
Property Value
Type Description
System.String

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS