RelationalEntityTypeExtensions.SetViewSchema Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SetViewSchema(IMutableEntityType, String) |
Sets the database schema that contains the mapped view. |
SetViewSchema(IConventionEntityType, String, Boolean) |
Sets the database schema that contains the mapped view. |
SetViewSchema(IMutableEntityType, String)
Sets the database schema that contains the mapped view.
public static void SetViewSchema (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string value);
public static void SetViewSchema (this Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType entityType, string? value);
static member SetViewSchema : Microsoft.EntityFrameworkCore.Metadata.IMutableEntityType * string -> unit
<Extension()>
Public Sub SetViewSchema (entityType As IMutableEntityType, value As String)
Parameters
- entityType
- IMutableEntityType
The entity type to set the view schema for.
- value
- String
The value to set.
Applies to
SetViewSchema(IConventionEntityType, String, Boolean)
Sets the database schema that contains the mapped view.
public static string SetViewSchema (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string value, bool fromDataAnnotation = false);
public static string? SetViewSchema (this Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType entityType, string? value, bool fromDataAnnotation = false);
static member SetViewSchema : Microsoft.EntityFrameworkCore.Metadata.IConventionEntityType * string * bool -> string
<Extension()>
Public Function SetViewSchema (entityType As IConventionEntityType, value As String, Optional fromDataAnnotation As Boolean = false) As String
Parameters
- entityType
- IConventionEntityType
The entity type to set the view schema for.
- value
- String
The value to set.
- fromDataAnnotation
- Boolean
Indicates whether the configuration was specified using a data annotation.
Returns
The configured schema.
Applies to
Entity Framework