CosmosEntityTypeExtensions.SetAnalyticalStoreTimeToLive Method

Definition

Overloads

SetAnalyticalStoreTimeToLive(IMutableEntityType, Nullable<Int32>)

Sets the time to live for analytical store in seconds at container scope.

SetAnalyticalStoreTimeToLive(IConventionEntityType, Nullable<Int32>, Boolean)

Sets the time to live for analytical store in seconds at container scope.

SetAnalyticalStoreTimeToLive(IMutableEntityType, Nullable<Int32>)

Sets the time to live for analytical store in seconds at container scope.

public static void SetAnalyticalStoreTimeToLive (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, int? seconds);
static member SetAnalyticalStoreTimeToLive : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * Nullable<int> -> unit
<Extension()>
Public Sub SetAnalyticalStoreTimeToLive (entityType As IMutableEntityType, seconds As Nullable(Of Integer))

Parameters

entityType
IMutableEntityType

The entity type.

seconds
Nullable<Int32>

The time to live to set.

Applies to

SetAnalyticalStoreTimeToLive(IConventionEntityType, Nullable<Int32>, Boolean)

Sets the time to live for analytical store in seconds at container scope.

public static void SetAnalyticalStoreTimeToLive (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, int? seconds, bool fromDataAnnotation = false);
public static int? SetAnalyticalStoreTimeToLive (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, int? seconds, bool fromDataAnnotation = false);
static member SetAnalyticalStoreTimeToLive : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Nullable<int> * bool -> unit
static member SetAnalyticalStoreTimeToLive : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * Nullable<int> * bool -> Nullable<int>
<Extension()>
Public Sub SetAnalyticalStoreTimeToLive (entityType As IConventionEntityType, seconds As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetAnalyticalStoreTimeToLive (entityType As IConventionEntityType, seconds As Nullable(Of Integer), Optional fromDataAnnotation As Boolean = false) As Nullable(Of Integer)

Parameters

entityType
IConventionEntityType

The entity type.

seconds
Nullable<Int32>

The time to live to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

Applies to