RelationalMetadataExtensions.Relational Method

Definition

Overloads

Relational(IEntityType)

Gets the relational database specific metadata for an entity.

Relational(IForeignKey)

Gets the relational database specific metadata for a foreign key.

Relational(IIndex)

Gets the relational database specific metadata for an index.

Relational(IKey)

Gets the relational database specific metadata for a key.

Relational(IModel)

Gets the relational database specific metadata for a model.

Relational(IMutableEntityType)

Gets the relational database specific metadata for an entity.

Relational(IMutableForeignKey)

Gets the relational database specific metadata for a foreign key.

Relational(IMutableIndex)

Gets the relational database specific metadata for an index.

Relational(IMutableKey)

Gets the relational database specific metadata for a key.

Relational(IMutableModel)

Gets the relational database specific metadata for a model.

Relational(IMutableProperty)

Gets the relational database specific metadata for a property.

Relational(IProperty)

Gets the relational database specific metadata for a property.

Relational(IEntityType)

Source:
RelationalMetadataExtensions.cs
Source:
RelationalMetadataExtensions.cs

Gets the relational database specific metadata for an entity.

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

Parameters

entityType
IEntityType

The entity to get metadata for.

Returns

The relational database 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

Relational(IForeignKey)

Source:
RelationalMetadataExtensions.cs
Source:
RelationalMetadataExtensions.cs

Gets the relational database specific metadata for a foreign key.

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

Parameters

foreignKey
IForeignKey

The foreign key to get metadata for.

Returns

The relational database specific metadata for the foreign 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

Relational(IIndex)

Source:
RelationalMetadataExtensions.cs
Source:
RelationalMetadataExtensions.cs

Gets the relational database specific metadata for an index.

C#
public static Microsoft.EntityFrameworkCore.Metadata.IRelationalIndexAnnotations Relational (this Microsoft.EntityFrameworkCore.Metadata.IIndex index);

Parameters

index
IIndex

The index to get metadata for.

Returns

The relational database 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

Relational(IKey)

Source:
RelationalMetadataExtensions.cs
Source:
RelationalMetadataExtensions.cs

Gets the relational database specific metadata for a key.

C#
public static Microsoft.EntityFrameworkCore.Metadata.IRelationalKeyAnnotations Relational (this Microsoft.EntityFrameworkCore.Metadata.IKey key);

Parameters

key
IKey

The key to get metadata for.

Returns

The relational database 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

Relational(IModel)

Source:
RelationalMetadataExtensions.cs
Source:
RelationalMetadataExtensions.cs

Gets the relational database specific metadata for a model.

C#
public static Microsoft.EntityFrameworkCore.Metadata.IRelationalModelAnnotations Relational (this Microsoft.EntityFrameworkCore.Metadata.IModel model);

Parameters

model
IModel

The model to get metadata for.

Returns

The relational database 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

Relational(IMutableEntityType)

Source:
RelationalMetadataExtensions.cs
Source:
RelationalMetadataExtensions.cs

Gets the relational database specific metadata for an entity.

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

Parameters

entityType
IMutableEntityType

The entity to get metadata for.

Returns

The relational database 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

Relational(IMutableForeignKey)

Source:
RelationalMetadataExtensions.cs
Source:
RelationalMetadataExtensions.cs

Gets the relational database specific metadata for a foreign key.

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

Parameters

foreignKey
IMutableForeignKey

The foreign key to get metadata for.

Returns

The relational database specific metadata for the foreign 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

Relational(IMutableIndex)

Source:
RelationalMetadataExtensions.cs
Source:
RelationalMetadataExtensions.cs

Gets the relational database specific metadata for an index.

C#
public static Microsoft.EntityFrameworkCore.Metadata.RelationalIndexAnnotations Relational (this Microsoft.EntityFrameworkCore.Metadata.IMutableIndex index);

Parameters

index
IMutableIndex

The index to get metadata for.

Returns

The relational database 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

Relational(IMutableKey)

Source:
RelationalMetadataExtensions.cs
Source:
RelationalMetadataExtensions.cs

Gets the relational database specific metadata for a key.

C#
public static Microsoft.EntityFrameworkCore.Metadata.RelationalKeyAnnotations Relational (this Microsoft.EntityFrameworkCore.Metadata.IMutableKey key);

Parameters

key
IMutableKey

The key to get metadata for.

Returns

The relational database 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

Relational(IMutableModel)

Source:
RelationalMetadataExtensions.cs
Source:
RelationalMetadataExtensions.cs

Gets the relational database specific metadata for a model.

C#
public static Microsoft.EntityFrameworkCore.Metadata.RelationalModelAnnotations Relational (this Microsoft.EntityFrameworkCore.Metadata.IMutableModel model);

Parameters

model
IMutableModel

The model to get metadata for.

Returns

The relational database 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

Relational(IMutableProperty)

Source:
RelationalMetadataExtensions.cs
Source:
RelationalMetadataExtensions.cs

Gets the relational database specific metadata for a property.

C#
public static Microsoft.EntityFrameworkCore.Metadata.RelationalPropertyAnnotations Relational (this Microsoft.EntityFrameworkCore.Metadata.IMutableProperty property);

Parameters

property
IMutableProperty

The property to get metadata for.

Returns

The relational database 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

Relational(IProperty)

Source:
RelationalMetadataExtensions.cs
Source:
RelationalMetadataExtensions.cs

Gets the relational database specific metadata for a property.

C#
public static Microsoft.EntityFrameworkCore.Metadata.IRelationalPropertyAnnotations Relational (this Microsoft.EntityFrameworkCore.Metadata.IProperty property);

Parameters

property
IProperty

The property to get metadata for.

Returns

The relational database 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