SqlServerIndexBuilderExtensions.CanSetIsCreatedOnline 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.
Returns a value indicating whether the index can be configured with online option when targeting SQL Server.
public static bool CanSetIsCreatedOnline (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder indexBuilder, bool? createdOnline, bool fromDataAnnotation = false);
static member CanSetIsCreatedOnline : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionIndexBuilder * Nullable<bool> * bool -> bool
<Extension()>
Public Function CanSetIsCreatedOnline (indexBuilder As IConventionIndexBuilder, createdOnline As Nullable(Of Boolean), Optional fromDataAnnotation As Boolean = false) As Boolean
Parameters
- indexBuilder
- IConventionIndexBuilder
The builder for the index being configured.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The same builder instance if the configuration was applied,
null
otherwise.
Remarks
See Modeling entity types and relationships, and Accessing SQL Server and Azure SQL databases with EF Core for more information and examples.
Applies to
Entity Framework