RelationalEntityTypeBuilderExtensions.SplitToView Method

Definition

Overloads

SplitToView(OwnedNavigationBuilder, String, String, Action<OwnedNavigationSplitViewBuilder>)

Configures some of the properties on this entity type to be mapped to a different view. The primary key properties are mapped to all views, other properties must be explicitly mapped.

SplitToView(EntityTypeBuilder, String, String, Action<SplitViewBuilder>)

Configures some of the properties on this entity type to be mapped to a different view. The primary key properties are mapped to all views, other properties must be explicitly mapped.

SplitToView(EntityTypeBuilder, String, Action<SplitViewBuilder>)

Configures some of the properties on this entity type to be mapped to a different view. The primary key properties are mapped to all views, other properties must be explicitly mapped.

SplitToView(OwnedNavigationBuilder, String, Action<OwnedNavigationSplitViewBuilder>)

Configures some of the properties on this entity type to be mapped to a different view. The primary key properties are mapped to all views, other properties must be explicitly mapped.

SplitToView<TEntity>(EntityTypeBuilder<TEntity>, String, Action<SplitViewBuilder<TEntity>>)

Configures some of the properties on this entity type to be mapped to a different view. The primary key properties are mapped to all views, other properties must be explicitly mapped.

SplitToView<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<SplitViewBuilder<TEntity>>)

Configures some of the properties on this entity type to be mapped to a different view. The primary key properties are mapped to all views, other properties must be explicitly mapped.

SplitToView<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, Action<OwnedNavigationSplitViewBuilder<TOwnerEntity, TDependentEntity>>)

Configures some of the properties on this entity type to be mapped to a different view. The primary key properties are mapped to all views, other properties must be explicitly mapped.

SplitToView<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, String, Action<OwnedNavigationSplitViewBuilder<TOwnerEntity, TDependentEntity>>)

Configures some of the properties on this entity type to be mapped to a different view. The primary key properties are mapped to all views, other properties must be explicitly mapped.

SplitToView(OwnedNavigationBuilder, String, String, Action<OwnedNavigationSplitViewBuilder>)

Configures some of the properties on this entity type to be mapped to a different view. The primary key properties are mapped to all views, other properties must be explicitly mapped.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder SplitToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitViewBuilder> buildAction);
static member SplitToView : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitViewBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function SplitToView (ownedNavigationBuilder As OwnedNavigationBuilder, name As String, schema As String, buildAction As Action(Of OwnedNavigationSplitViewBuilder)) As OwnedNavigationBuilder

Parameters

ownedNavigationBuilder
OwnedNavigationBuilder

The builder for the entity type being configured.

name
String

The name of the view.

schema
String

The schema of the view.

buildAction
Action<OwnedNavigationSplitViewBuilder>

An action that performs configuration of the view.

Returns

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

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

SplitToView(EntityTypeBuilder, String, String, Action<SplitViewBuilder>)

Configures some of the properties on this entity type to be mapped to a different view. The primary key properties are mapped to all views, other properties must be explicitly mapped.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder SplitToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SplitViewBuilder> buildAction);
static member SplitToView : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SplitViewBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function SplitToView (entityTypeBuilder As EntityTypeBuilder, name As String, schema As String, buildAction As Action(Of SplitViewBuilder)) As 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.

buildAction
Action<SplitViewBuilder>

An action that performs configuration of the view.

Returns

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

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

SplitToView(EntityTypeBuilder, String, Action<SplitViewBuilder>)

Configures some of the properties on this entity type to be mapped to a different view. The primary key properties are mapped to all views, other properties must be explicitly mapped.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder SplitToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SplitViewBuilder> buildAction);
static member SplitToView : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SplitViewBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function SplitToView (entityTypeBuilder As EntityTypeBuilder, name As String, buildAction As Action(Of SplitViewBuilder)) As EntityTypeBuilder

Parameters

entityTypeBuilder
EntityTypeBuilder

The builder for the entity type being configured.

name
String

The name of the view.

buildAction
Action<SplitViewBuilder>

An action that performs configuration of the view.

Returns

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

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

SplitToView(OwnedNavigationBuilder, String, Action<OwnedNavigationSplitViewBuilder>)

Configures some of the properties on this entity type to be mapped to a different view. The primary key properties are mapped to all views, other properties must be explicitly mapped.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder SplitToView (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitViewBuilder> buildAction);
static member SplitToView : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitViewBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function SplitToView (ownedNavigationBuilder As OwnedNavigationBuilder, name As String, buildAction As Action(Of OwnedNavigationSplitViewBuilder)) As OwnedNavigationBuilder

Parameters

ownedNavigationBuilder
OwnedNavigationBuilder

The builder for the entity type being configured.

name
String

The name of the view.

buildAction
Action<OwnedNavigationSplitViewBuilder>

An action that performs configuration of the view.

Returns

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

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

SplitToView<TEntity>(EntityTypeBuilder<TEntity>, String, Action<SplitViewBuilder<TEntity>>)

Configures some of the properties on this entity type to be mapped to a different view. The primary key properties are mapped to all views, other properties must be explicitly mapped.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> SplitToView<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SplitViewBuilder<TEntity>> buildAction) where TEntity : class;
static member SplitToView : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SplitViewBuilder<'Entity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function SplitToView(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, buildAction As Action(Of SplitViewBuilder(Of TEntity))) 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.

buildAction
Action<SplitViewBuilder<TEntity>>

An action that performs configuration of the view.

Returns

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

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

SplitToView<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<SplitViewBuilder<TEntity>>)

Configures some of the properties on this entity type to be mapped to a different view. The primary key properties are mapped to all views, other properties must be explicitly mapped.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> SplitToView<TEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<TEntity> entityTypeBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SplitViewBuilder<TEntity>> buildAction) where TEntity : class;
static member SplitToView : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.SplitViewBuilder<'Entity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder<'Entity (requires 'Entity : null)> (requires 'Entity : null)
<Extension()>
Public Function SplitToView(Of TEntity As Class) (entityTypeBuilder As EntityTypeBuilder(Of TEntity), name As String, schema As String, buildAction As Action(Of SplitViewBuilder(Of TEntity))) 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.

buildAction
Action<SplitViewBuilder<TEntity>>

An action that performs configuration of the view.

Returns

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

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

SplitToView<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, Action<OwnedNavigationSplitViewBuilder<TOwnerEntity, TDependentEntity>>)

Configures some of the properties on this entity type to be mapped to a different view. The primary key properties are mapped to all views, other properties must be explicitly mapped.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> SplitToView<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitViewBuilder<TOwnerEntity,TDependentEntity>> buildAction) where TOwnerEntity : class where TDependentEntity : class;
static member SplitToView : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitViewBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function SplitToView(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String, buildAction As Action(Of OwnedNavigationSplitViewBuilder(Of TOwnerEntity, TDependentEntity))) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

Type Parameters

TOwnerEntity

The entity type owning the relationship.

TDependentEntity

The dependent entity type of the relationship.

Parameters

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

The builder for the entity type being configured.

name
String

The name of the view.

buildAction
Action<OwnedNavigationSplitViewBuilder<TOwnerEntity,TDependentEntity>>

An action that performs configuration of the view.

Returns

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

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to

SplitToView<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, String, Action<OwnedNavigationSplitViewBuilder<TOwnerEntity, TDependentEntity>>)

Configures some of the properties on this entity type to be mapped to a different view. The primary key properties are mapped to all views, other properties must be explicitly mapped.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> SplitToView<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitViewBuilder<TOwnerEntity,TDependentEntity>> buildAction) where TOwnerEntity : class where TDependentEntity : class;
static member SplitToView : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationSplitViewBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function SplitToView(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String, schema As String, buildAction As Action(Of OwnedNavigationSplitViewBuilder(Of TOwnerEntity, TDependentEntity))) As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity)

Type Parameters

TOwnerEntity

The entity type owning the relationship.

TDependentEntity

The dependent entity type of the relationship.

Parameters

ownedNavigationBuilder
OwnedNavigationBuilder<TOwnerEntity,TDependentEntity>

The builder for the entity type being configured.

name
String

The name of the view.

schema
String

The schema of the view.

buildAction
Action<OwnedNavigationSplitViewBuilder<TOwnerEntity,TDependentEntity>>

An action that performs configuration of the view.

Returns

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

Remarks

See Modeling entity types and relationships for more information and examples.

Applies to