RelationalEntityTypeBuilderExtensions.ToView Method

Definition

Overloads

ToView(EntityTypeBuilder, String)

Configures the view that the entity type maps to when targeting a relational database.

ToView(EntityTypeBuilder, String, String)

Configures the view that the entity type maps to when targeting a relational database.

ToView<TEntity>(EntityTypeBuilder<TEntity>, String)

Configures the view that the entity type maps to when targeting a relational database.

ToView<TEntity>(EntityTypeBuilder<TEntity>, String, String)

Configures the view that the entity type maps to when targeting a relational database.

ToView(EntityTypeBuilder, String)

Configures the view that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name);
static member ToView : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder

Parameters

entityTypeBuilder
EntityTypeBuilder

The builder for the entity type being configured.

name
String

The name of the view.

Returns

The same builder instance so that multiple calls can be chained.

ToView(EntityTypeBuilder, String, String)

Configures the view that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder ToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, string schema);
static member ToView : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder

Parameters

entityTypeBuilder
EntityTypeBuilder

The builder for the entity type being configured.

name
String

The name of the view.

schema
String

The schema of the view.

Returns

The same builder instance so that multiple calls can be chained.

ToView<TEntity>(EntityTypeBuilder<TEntity>, String)

Configures the view that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToView<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name) where TEntity : class;
static member ToView : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ToView(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String) As EntityTypeBuilder(Of TEntity)

Type Parameters

TEntity

The entity type being configured.

Parameters

entityTypeBuilder
EntityTypeBuilder<TEntity>

The builder for the entity type being configured.

name
String

The name of the view.

Returns

The same builder instance so that multiple calls can be chained.

ToView<TEntity>(EntityTypeBuilder<TEntity>, String, String)

Configures the view that the entity type maps to when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> ToView<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string schema) where TEntity : class;
static member ToView : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * string -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function ToView(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, schema As String) As EntityTypeBuilder(Of TEntity)

Type Parameters

TEntity

The entity type being configured.

Parameters

entityTypeBuilder
EntityTypeBuilder<TEntity>

The builder for the entity type being configured.

name
String

The name of the view.

schema
String

The schema of the view.

Returns

The same builder instance so that multiple calls can be chained.

Applies to