RelationalEntityTypeBuilderExtensions.UpdateUsingStoredProcedure Method

Definition

Overloads

UpdateUsingStoredProcedure(OwnedNavigationBuilder, String, String, Action<OwnedNavigationStoredProcedureBuilder>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

UpdateUsingStoredProcedure(OwnedNavigationBuilder, String, Action<OwnedNavigationStoredProcedureBuilder>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

UpdateUsingStoredProcedure(EntityTypeBuilder, String, Action<StoredProcedureBuilder>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

UpdateUsingStoredProcedure(EntityTypeBuilder, String, String, Action<StoredProcedureBuilder>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

UpdateUsingStoredProcedure(IConventionEntityTypeBuilder, Boolean)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

UpdateUsingStoredProcedure(EntityTypeBuilder, Action<StoredProcedureBuilder>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

UpdateUsingStoredProcedure(OwnedNavigationBuilder, Action<OwnedNavigationStoredProcedureBuilder>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

UpdateUsingStoredProcedure<TEntity>(EntityTypeBuilder<TEntity>, Action<StoredProcedureBuilder<TEntity>>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

UpdateUsingStoredProcedure<TEntity>(EntityTypeBuilder<TEntity>, String, Action<StoredProcedureBuilder<TEntity>>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

UpdateUsingStoredProcedure<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<StoredProcedureBuilder<TEntity>>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

UpdateUsingStoredProcedure<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, String, Action<OwnedNavigationStoredProcedureBuilder<TOwnerEntity, TDependentEntity>>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

UpdateUsingStoredProcedure<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, Action<OwnedNavigationStoredProcedureBuilder<TOwnerEntity, TDependentEntity>>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

UpdateUsingStoredProcedure<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, Action<OwnedNavigationStoredProcedureBuilder<TOwnerEntity, TDependentEntity>>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

UpdateUsingStoredProcedure(OwnedNavigationBuilder, String, String, Action<OwnedNavigationStoredProcedureBuilder>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

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

Parameters

ownedNavigationBuilder
OwnedNavigationBuilder

The builder for the entity type being configured.

name
String

The name of the stored procedure in the database.

schema
String

The schema of the stored procedure in the database.

buildAction
Action<OwnedNavigationStoredProcedureBuilder>

An action that performs configuration of the stored procedure.

Returns

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

Remarks

See Modeling entity types and relationships and Saving data with EF Core for more information and examples.

Applies to

UpdateUsingStoredProcedure(OwnedNavigationBuilder, String, Action<OwnedNavigationStoredProcedureBuilder>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

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

Parameters

ownedNavigationBuilder
OwnedNavigationBuilder

The builder for the entity type being configured.

name
String

The name of the stored procedure in the database.

buildAction
Action<OwnedNavigationStoredProcedureBuilder>

An action that performs configuration of the stored procedure.

Returns

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

Remarks

See Modeling entity types and relationships and Saving data with EF Core for more information and examples.

Applies to

UpdateUsingStoredProcedure(EntityTypeBuilder, String, Action<StoredProcedureBuilder>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

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

Parameters

entityTypeBuilder
EntityTypeBuilder

The builder for the entity type being configured.

name
String

The name of the stored procedure in the database.

buildAction
Action<StoredProcedureBuilder>

An action that performs configuration of the stored procedure.

Returns

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

Remarks

See Modeling entity types and relationships and Saving data with EF Core for more information and examples.

Applies to

UpdateUsingStoredProcedure(EntityTypeBuilder, String, String, Action<StoredProcedureBuilder>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

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

Parameters

entityTypeBuilder
EntityTypeBuilder

The builder for the entity type being configured.

name
String

The name of the stored procedure in the database.

schema
String

The schema of the stored procedure in the database.

buildAction
Action<StoredProcedureBuilder>

An action that performs configuration of the stored procedure.

Returns

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

Remarks

See Modeling entity types and relationships and Saving data with EF Core for more information and examples.

Applies to

UpdateUsingStoredProcedure(IConventionEntityTypeBuilder, Boolean)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionStoredProcedureBuilder? UpdateUsingStoredProcedure (this Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder entityTypeBuilder, bool fromDataAnnotation = false);
static member UpdateUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionEntityTypeBuilder * bool -> Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionStoredProcedureBuilder
<Extension()>
Public Function UpdateUsingStoredProcedure (entityTypeBuilder As IConventionEntityTypeBuilder, Optional fromDataAnnotation As Boolean = false) As IConventionStoredProcedureBuilder

Parameters

entityTypeBuilder
IConventionEntityTypeBuilder

The builder for the entity type being configured.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The builder instance if the configuration was applied, null otherwise.

Applies to

UpdateUsingStoredProcedure(EntityTypeBuilder, Action<StoredProcedureBuilder>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder UpdateUsingStoredProcedure (this Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder entityTypeBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder> buildAction);
static member UpdateUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.StoredProcedureBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.EntityTypeBuilder
<Extension()>
Public Function UpdateUsingStoredProcedure (entityTypeBuilder As EntityTypeBuilder, buildAction As Action(Of StoredProcedureBuilder)) As EntityTypeBuilder

Parameters

entityTypeBuilder
EntityTypeBuilder

The builder for the entity type being configured.

buildAction
Action<StoredProcedureBuilder>

An action that performs configuration of the stored procedure.

Returns

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

Remarks

See Modeling entity types and relationships and Saving data with EF Core for more information and examples.

Applies to

UpdateUsingStoredProcedure(OwnedNavigationBuilder, Action<OwnedNavigationStoredProcedureBuilder>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder UpdateUsingStoredProcedure (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder ownedNavigationBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder> buildAction);
static member UpdateUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder
<Extension()>
Public Function UpdateUsingStoredProcedure (ownedNavigationBuilder As OwnedNavigationBuilder, buildAction As Action(Of OwnedNavigationStoredProcedureBuilder)) As OwnedNavigationBuilder

Parameters

ownedNavigationBuilder
OwnedNavigationBuilder

The builder for the entity type being configured.

buildAction
Action<OwnedNavigationStoredProcedureBuilder>

An action that performs configuration of the stored procedure.

Returns

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

Remarks

See Modeling entity types and relationships and Saving data with EF Core for more information and examples.

Applies to

UpdateUsingStoredProcedure<TEntity>(EntityTypeBuilder<TEntity>, Action<StoredProcedureBuilder<TEntity>>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

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

buildAction
Action<StoredProcedureBuilder<TEntity>>

An action that performs configuration of the stored procedure.

Returns

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

Remarks

See Modeling entity types and relationships and Saving data with EF Core for more information and examples.

Applies to

UpdateUsingStoredProcedure<TEntity>(EntityTypeBuilder<TEntity>, String, Action<StoredProcedureBuilder<TEntity>>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

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

buildAction
Action<StoredProcedureBuilder<TEntity>>

An action that performs configuration of the stored procedure.

Returns

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

Remarks

See Modeling entity types and relationships and Saving data with EF Core for more information and examples.

Applies to

UpdateUsingStoredProcedure<TEntity>(EntityTypeBuilder<TEntity>, String, String, Action<StoredProcedureBuilder<TEntity>>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

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

schema
String

The schema of the stored procedure in the database.

buildAction
Action<StoredProcedureBuilder<TEntity>>

An action that performs configuration of the stored procedure.

Returns

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

Remarks

See Modeling entity types and relationships and Saving data with EF Core for more information and examples.

Applies to

UpdateUsingStoredProcedure<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, String, Action<OwnedNavigationStoredProcedureBuilder<TOwnerEntity, TDependentEntity>>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> UpdateUsingStoredProcedure<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string name, string? schema, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity>> buildAction) where TOwnerEntity : class where TDependentEntity : class;
static member UpdateUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function UpdateUsingStoredProcedure(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String, schema As String, buildAction As Action(Of OwnedNavigationStoredProcedureBuilder(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 stored procedure in the database.

schema
String

The schema of the stored procedure in the database.

buildAction
Action<OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity>>

An action that performs configuration of the stored procedure.

Returns

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

Remarks

See Modeling entity types and relationships and Saving data with EF Core for more information and examples.

Applies to

UpdateUsingStoredProcedure<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, Action<OwnedNavigationStoredProcedureBuilder<TOwnerEntity, TDependentEntity>>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> UpdateUsingStoredProcedure<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity>> buildAction) where TOwnerEntity : class where TDependentEntity : class;
static member UpdateUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function UpdateUsingStoredProcedure(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), buildAction As Action(Of OwnedNavigationStoredProcedureBuilder(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.

buildAction
Action<OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity>>

An action that performs configuration of the stored procedure.

Returns

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

Remarks

See Modeling entity types and relationships and Saving data with EF Core for more information and examples.

Applies to

UpdateUsingStoredProcedure<TOwnerEntity,TDependentEntity>(OwnedNavigationBuilder<TOwnerEntity, TDependentEntity>, String, Action<OwnedNavigationStoredProcedureBuilder<TOwnerEntity, TDependentEntity>>)

Configures the stored procedure that the entity type uses for updates when targeting a relational database.

public static Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> UpdateUsingStoredProcedure<TOwnerEntity,TDependentEntity> (this Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<TOwnerEntity,TDependentEntity> ownedNavigationBuilder, string name, Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity>> buildAction) where TOwnerEntity : class where TDependentEntity : class;
static member UpdateUsingStoredProcedure : Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> * string * Action<Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationStoredProcedureBuilder<'OwnerEntity, 'DependentEntity>> -> Microsoft.EntityFrameworkCore.Metadata.Builders.OwnedNavigationBuilder<'OwnerEntity, 'DependentEntity (requires 'OwnerEntity : null and 'DependentEntity : null)> (requires 'OwnerEntity : null and 'DependentEntity : null)
<Extension()>
Public Function UpdateUsingStoredProcedure(Of TOwnerEntity As Class, TDependentEntity As Class) (ownedNavigationBuilder As OwnedNavigationBuilder(Of TOwnerEntity, TDependentEntity), name As String, buildAction As Action(Of OwnedNavigationStoredProcedureBuilder(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 stored procedure in the database.

buildAction
Action<OwnedNavigationStoredProcedureBuilder<TOwnerEntity,TDependentEntity>>

An action that performs configuration of the stored procedure.

Returns

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

Remarks

See Modeling entity types and relationships and Saving data with EF Core for more information and examples.

Applies to