CosmosEntityTypeExtensions.SetDefaultTimeToLive Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetDefaultTimeToLive(IMutableEntityType, Nullable<Int32>) |
Sets the default time to live in seconds at container scope. |
SetDefaultTimeToLive(IConventionEntityType, Nullable<Int32>, Boolean) |
Sets the default time to live in seconds at container scope. |
SetDefaultTimeToLive(IMutableEntityType, Nullable<Int32>)
Sets the default time to live in seconds at container scope.
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))
Parameters
- entityType
- IMutableEntityType
The entity type.
Applies to
SetDefaultTimeToLive(IConventionEntityType, Nullable<Int32>, Boolean)
Sets the default time to live in seconds at container scope.
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)
Parameters
- entityType
- IConventionEntityType
The entity type.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
Applies to
Entity Framework
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for