November Happy Hour will be moved to Thursday December 5th.

Class EPiServerDataStoreAttribute

Apply this attribute to class whose instances are to be stored in the EPiServer Dynamic Data Store where you want to control various aspects of store creation

Inheritance
System.Object
EPiServerDataStoreAttribute
Namespace: EPiServer.Data.Dynamic
Assembly: EPiServer.Data.dll
Version: 12.0.3
Syntax
public sealed class EPiServerDataStoreAttribute : Attribute

Constructors

EPiServerDataStoreAttribute()

Declaration
public EPiServerDataStoreAttribute()

Properties

AutomaticallyCreateStore

if true then the Dynamic Data Store initialization code will create a store for the Type the attribute is applied to.

Declaration
public bool AutomaticallyCreateStore { get; set; }
Property Value
Type Description
System.Boolean

AutomaticallyRemapStore

if true then the Dynamic Data Store initialization code will check the Type the attribute is applied to against the mappings for the store for the Type (if one exists). If the mappings do not agree then the store will be updated to reflect the Type

Declaration
public bool AutomaticallyRemapStore { get; set; }
Property Value
Type Description
System.Boolean

DatabaseDateTimeKind

Specifies how the store should handle with System.DateTime types.

Declaration
public DatabaseDateTimeKind DatabaseDateTimeKind { get; set; }
Property Value
Type Description
DatabaseDateTimeKind

IsDateTimeKindSpecified

Indicate if the DateTimeKind has been stes via attribute

Declaration
public bool IsDateTimeKindSpecified { get; }
Property Value
Type Description
System.Boolean

StoreName

The name of the store to create for the Type. If this property has no value then the store will get the default name of 'namespace.typename' where namespace is the namespace the type is in and typename is the name of the type the attribute is applied to

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

Extension Methods