Sdílet prostřednictvím


CosmosEntityTypeExtensions.SetDefaultTimeToLive Metoda

Definice

Přetížení

SetDefaultTimeToLive(IMutableEntityType, Nullable<Int32>)

Nastaví výchozí hodnotu time to live v sekundách v oboru kontejneru.

SetDefaultTimeToLive(IConventionEntityType, Nullable<Int32>, Boolean)

Nastaví výchozí hodnotu time to live v sekundách v oboru kontejneru.

SetDefaultTimeToLive(IMutableEntityType, Nullable<Int32>)

Nastaví výchozí hodnotu time to live v sekundách v oboru kontejneru.

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

Parametry

entityType
IMutableEntityType

Typ entity.

seconds
Nullable<Int32>

Hodnota TTL (Time to Live), která se má nastavit.

Platí pro

SetDefaultTimeToLive(IConventionEntityType, Nullable<Int32>, Boolean)

Nastaví výchozí hodnotu time to live v sekundách v oboru kontejneru.

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

Parametry

entityType
IConventionEntityType

Typ entity.

seconds
Nullable<Int32>

Hodnota TTL (Time to Live), která se má nastavit.

fromDataAnnotation
Boolean

Určuje, zda byla konfigurace zadána pomocí datové poznámky.

Návraty

Platí pro