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.

C#
public static Microsoft.EntityFrameworkCore.Metadata.IRelationalEntityTypeAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);
C#
public static Microsoft.EntityFrameworkCore.Metadata.ISqlServerEntityTypeAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IEntityType entityType);

Parameters

entityType
IEntityType

The entity to get metadata for.

Returns

The SQL Server specific metadata for the entity.

Applies to

Entity Framework Core 2.2 och andra versioner
Produkt Versioner
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2

SqlServer(IForeignKey)

Gets the SQL Server specific metadata for a foreign key.

C#
public static Microsoft.EntityFrameworkCore.Metadata.IRelationalForeignKeyAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IForeignKey foreignKey);

Parameters

foreignKey
IForeignKey

The foreign key to get metadata for.

Returns

The SQL Server specific metadata for the foreign key.

Applies to

Entity Framework Core 1.1 och Entity Framework Core 1.0
Produkt Versioner
Entity Framework Core 1.0, 1.1

SqlServer(IIndex)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for an index.

C#
public static Microsoft.EntityFrameworkCore.Metadata.ISqlServerIndexAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IIndex index);

Parameters

index
IIndex

The index to get metadata for.

Returns

The SQL Server specific metadata for the index.

Applies to

Entity Framework Core 2.2 och andra versioner
Produkt Versioner
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2

SqlServer(IKey)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for a key.

C#
public static Microsoft.EntityFrameworkCore.Metadata.ISqlServerKeyAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IKey key);

Parameters

key
IKey

The key to get metadata for.

Returns

The SQL Server specific metadata for the key.

Applies to

Entity Framework Core 2.2 och andra versioner
Produkt Versioner
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2

SqlServer(IModel)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for a model.

C#
public static Microsoft.EntityFrameworkCore.Metadata.ISqlServerModelAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IModel model);

Parameters

model
IModel

The model to get metadata for.

Returns

The SQL Server specific metadata for the model.

Applies to

Entity Framework Core 2.2 och andra versioner
Produkt Versioner
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2

SqlServer(IMutableEntityType)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for an entity.

C#
public static Microsoft.EntityFrameworkCore.Metadata.RelationalEntityTypeAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);
C#
public static Microsoft.EntityFrameworkCore.Metadata.SqlServerEntityTypeAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType);

Parameters

entityType
IMutableEntityType

The entity to get metadata for.

Returns

The SQL Server specific metadata for the entity.

Applies to

Entity Framework Core 2.2 och andra versioner
Produkt Versioner
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2

SqlServer(IMutableForeignKey)

Gets the SQL Server specific metadata for a foreign key.

C#
public static Microsoft.EntityFrameworkCore.Metadata.RelationalForeignKeyAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IMutableForeignKey foreignKey);

Parameters

foreignKey
IMutableForeignKey

The foreign key to get metadata for.

Returns

The SQL Server specific metadata for the foreign key.

Applies to

Entity Framework Core 1.1 och Entity Framework Core 1.0
Produkt Versioner
Entity Framework Core 1.0, 1.1

SqlServer(IMutableIndex)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for an index.

C#
public static Microsoft.EntityFrameworkCore.Metadata.SqlServerIndexAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index);

Parameters

index
IMutableIndex

The index to get metadata for.

Returns

The SQL Server specific metadata for the index.

Applies to

Entity Framework Core 2.2 och andra versioner
Produkt Versioner
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2

SqlServer(IMutableKey)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for a key.

C#
public static Microsoft.EntityFrameworkCore.Metadata.SqlServerKeyAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IMutableKey key);

Parameters

key
IMutableKey

The key to get metadata for.

Returns

The SQL Server specific metadata for the key.

Applies to

Entity Framework Core 2.2 och andra versioner
Produkt Versioner
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2

SqlServer(IMutableModel)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for a model.

C#
public static Microsoft.EntityFrameworkCore.Metadata.SqlServerModelAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model);

Parameters

model
IMutableModel

The model to get metadata for.

Returns

The SQL Server specific metadata for the model.

Applies to

Entity Framework Core 2.2 och andra versioner
Produkt Versioner
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2

SqlServer(IMutableProperty)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for a property.

C#
public static Microsoft.EntityFrameworkCore.Metadata.SqlServerPropertyAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);

Parameters

property
IMutableProperty

The property to get metadata for.

Returns

The SQL Server specific metadata for the property.

Applies to

Entity Framework Core 2.2 och andra versioner
Produkt Versioner
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2

SqlServer(IProperty)

Source:
SqlServerMetadataExtensions.cs
Source:
SqlServerMetadataExtensions.cs

Gets the SQL Server specific metadata for a property.

C#
public static Microsoft.EntityFrameworkCore.Metadata.ISqlServerPropertyAnnotations SqlServer (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);

Parameters

property
IProperty

The property to get metadata for.

Returns

The SQL Server specific metadata for the property.

Applies to

Entity Framework Core 2.2 och andra versioner
Produkt Versioner
Entity Framework Core 1.0, 1.1, 2.0, 2.1, 2.2