IConventionStoredProcedureBuilder.HasSchema(String, Boolean) Method

Definition

Sets the schema of the stored procedure.

C#
public Microsoft.EntityFrameworkCore.Metadata.Builders.IConventionStoredProcedureBuilder? HasSchema (string? schema, bool fromDataAnnotation = false);

Parameters

schema
String

The schema of the stored procedure in the database.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

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

Applies to

Product Versions
Entity Framework Core 7.0, 8.0, 9.0