RelationalEntityTypeExtensions.SetSchema Method

Definition

Overloads

SetSchema(IConventionEntityType, String, Boolean)

Sets the database schema that contains the mapped table.

SetSchema(IMutableEntityType, String)

Sets the database schema that contains the mapped table.

SetSchema(IConventionEntityType, String, Boolean)

Sets the database schema that contains the mapped table.

public static void SetSchema (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string value, bool fromDataAnnotation = false);
public static string SetSchema (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string value, bool fromDataAnnotation = false);
public static string? SetSchema (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? value, bool fromDataAnnotation = false);
static member SetSchema : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> unit
static member SetSchema : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> string
<Extension()>
Public Sub SetSchema (entityType As IConventionEntityType, value As String, Optional fromDataAnnotation As Boolean = false)
<Extension()>
Public Function SetSchema (entityType As IConventionEntityType, value As String, Optional fromDataAnnotation As Boolean = false) As String

Parameters

entityType
IConventionEntityType

The entity type to set the schema for.

value
String

The value to set.

fromDataAnnotation
Boolean

Indicates whether the configuration was specified using a data annotation.

Returns

The configured value.

Applies to

SetSchema(IMutableEntityType, String)

Sets the database schema that contains the mapped table.

public static void SetSchema (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string value);
public static void SetSchema (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string? value);
static member SetSchema : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> unit
<Extension()>
Public Sub SetSchema (entityType As IMutableEntityType, value As String)

Parameters

entityType
IMutableEntityType

The entity type to set the schema for.

value
String

The value to set.

Applies to