Delen via


SqlServerMetadataExtensions.SqlServer Method

Definition

Overloads

SqlServer(IEntityType)

Gets the SQL Server specific metadata for an entity.

SqlServer(IForeignKey)

Gets the SQL Server specific metadata for a foreign key.

SqlServer(IIndex)

Gets the SQL Server specific metadata for an index.

SqlServer(IKey)

Gets the SQL Server specific metadata for a key.

SqlServer(IModel)

Gets the SQL Server specific metadata for a model.

SqlServer(IMutableEntityType)

Gets the SQL Server specific metadata for an entity.

SqlServer(IMutableForeignKey)

Gets the SQL Server specific metadata for a foreign key.

SqlServer(IMutableIndex)

Gets the SQL Server specific metadata for an index.

SqlServer(IMutableKey)

Gets the SQL Server specific metadata for a key.

SqlServer(IMutableModel)

Gets the SQL Server specific metadata for a model.

SqlServer(IMutableProperty)

Gets the SQL Server specific metadata for a property.

SqlServer(IProperty)

Gets the SQL Server specific metadata for a property.

SqlServer(IEntityType)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for an entity.

public static Microsoft.EntityFrameworkCore.Metadata.IRelationalEntityTypeAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
public static Microsoft.EntityFrameworkCore.Metadata.ISqlServerEntityTypeAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.IRelationalEntityTypeAnnotations
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IEntityType -> Microsoft.EntityFrameworkCore.Metadata.ISqlServerEntityTypeAnnotations
<Extension()>
Public Function SqlServer (entityType As IEntityType) As IRelationalEntityTypeAnnotations
<Extension()>
Public Function SqlServer (entityType As IEntityType) As ISqlServerEntityTypeAnnotations

Parameters

entityType
IEntityType

The entity to get metadata for.

Returns

The SQL Server specific metadata for the entity.

Applies to

SqlServer(IForeignKey)

Gets the SQL Server specific metadata for a foreign key.

public static Microsoft.EntityFrameworkCore.Metadata.IRelationalForeignKeyAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IForeignKey -> Microsoft.EntityFrameworkCore.Metadata.IRelationalForeignKeyAnnotations
<Extension()>
Public Function SqlServer (foreignKey As IForeignKey) As IRelationalForeignKeyAnnotations

Parameters

foreignKey
IForeignKey

The foreign key to get metadata for.

Returns

The SQL Server specific metadata for the foreign key.

Applies to

SqlServer(IIndex)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for an index.

public static Microsoft.EntityFrameworkCore.Metadata.ISqlServerIndexAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IIndex index);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IIndex -> Microsoft.EntityFrameworkCore.Metadata.ISqlServerIndexAnnotations
<Extension()>
Public Function SqlServer (index As IIndex) As ISqlServerIndexAnnotations

Parameters

index
IIndex

The index to get metadata for.

Returns

The SQL Server specific metadata for the index.

Applies to

SqlServer(IKey)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for a key.

public static Microsoft.EntityFrameworkCore.Metadata.ISqlServerKeyAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IKey key);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IKey -> Microsoft.EntityFrameworkCore.Metadata.ISqlServerKeyAnnotations
<Extension()>
Public Function SqlServer (key As IKey) As ISqlServerKeyAnnotations

Parameters

key
IKey

The key to get metadata for.

Returns

The SQL Server specific metadata for the key.

Applies to

SqlServer(IModel)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for a model.

public static Microsoft.EntityFrameworkCore.Metadata.ISqlServerModelAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IModel model);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IModel -> Microsoft.EntityFrameworkCore.Metadata.ISqlServerModelAnnotations
<Extension()>
Public Function SqlServer (model As IModel) As ISqlServerModelAnnotations

Parameters

model
IModel

The model to get metadata for.

Returns

The SQL Server specific metadata for the model.

Applies to

SqlServer(IMutableEntityType)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for an entity.

public static Microsoft.EntityFrameworkCore.Metadata.RelationalEntityTypeAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
public static Microsoft.EntityFrameworkCore.Metadata.SqlServerEntityTypeAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.RelationalEntityTypeAnnotations
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType -> Microsoft.EntityFrameworkCore.Metadata.SqlServerEntityTypeAnnotations
<Extension()>
Public Function SqlServer (entityType As IMutableEntityType) As RelationalEntityTypeAnnotations
<Extension()>
Public Function SqlServer (entityType As IMutableEntityType) As SqlServerEntityTypeAnnotations

Parameters

entityType
IMutableEntityType

The entity to get metadata for.

Returns

The SQL Server specific metadata for the entity.

Applies to

SqlServer(IMutableForeignKey)

Gets the SQL Server specific metadata for a foreign key.

public static Microsoft.EntityFrameworkCore.Metadata.RelationalForeignKeyAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey -> Microsoft.EntityFrameworkCore.Metadata.RelationalForeignKeyAnnotations
<Extension()>
Public Function SqlServer (foreignKey As IMutableForeignKey) As RelationalForeignKeyAnnotations

Parameters

foreignKey
IMutableForeignKey

The foreign key to get metadata for.

Returns

The SQL Server specific metadata for the foreign key.

Applies to

SqlServer(IMutableIndex)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for an index.

public static Microsoft.EntityFrameworkCore.Metadata.SqlServerIndexAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IMutableIndex -> Microsoft.EntityFrameworkCore.Metadata.SqlServerIndexAnnotations
<Extension()>
Public Function SqlServer (index As IMutableIndex) As SqlServerIndexAnnotations

Parameters

index
IMutableIndex

The index to get metadata for.

Returns

The SQL Server specific metadata for the index.

Applies to

SqlServer(IMutableKey)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for a key.

public static Microsoft.EntityFrameworkCore.Metadata.SqlServerKeyAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IMutableKey key);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IMutableKey -> Microsoft.EntityFrameworkCore.Metadata.SqlServerKeyAnnotations
<Extension()>
Public Function SqlServer (key As IMutableKey) As SqlServerKeyAnnotations

Parameters

key
IMutableKey

The key to get metadata for.

Returns

The SQL Server specific metadata for the key.

Applies to

SqlServer(IMutableModel)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for a model.

public static Microsoft.EntityFrameworkCore.Metadata.SqlServerModelAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IMutableModel -> Microsoft.EntityFrameworkCore.Metadata.SqlServerModelAnnotations
<Extension()>
Public Function SqlServer (model As IMutableModel) As SqlServerModelAnnotations

Parameters

model
IMutableModel

The model to get metadata for.

Returns

The SQL Server specific metadata for the model.

Applies to

SqlServer(IMutableProperty)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for a property.

public static Microsoft.EntityFrameworkCore.Metadata.SqlServerPropertyAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IMutableProperty -> Microsoft.EntityFrameworkCore.Metadata.SqlServerPropertyAnnotations
<Extension()>
Public Function SqlServer (property As IMutableProperty) As SqlServerPropertyAnnotations

Parameters

property
IMutableProperty

The property to get metadata for.

Returns

The SQL Server specific metadata for the property.

Applies to

SqlServer(IProperty)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for a property.

public static Microsoft.EntityFrameworkCore.Metadata.ISqlServerPropertyAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);
static member SqlServer : Microsoft.EntityFrameworkCore.Metadata.IProperty -> Microsoft.EntityFrameworkCore.Metadata.ISqlServerPropertyAnnotations
<Extension()>
Public Function SqlServer (property As IProperty) As ISqlServerPropertyAnnotations

Parameters

property
IProperty

The property to get metadata for.

Returns

The SQL Server specific metadata for the property.

Applies to