QueryTypeBuilder.HasBaseType Method

Definition

Overloads

HasBaseType(String)

Sets the base type of this query type in an inheritance hierarchy.

HasBaseType(Type)

Sets the base type of this query type in an inheritance hierarchy.

HasBaseType(String)

Sets the base type of this query type in an inheritance hierarchy.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.QueryTypeBuilder HasBaseType (string name);
abstract member HasBaseType : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.QueryTypeBuilder
override this.HasBaseType : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.QueryTypeBuilder
Public Overridable Function HasBaseType (name As String) As QueryTypeBuilder

Parameters

name
String

The name of the base type.

Returns

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

Applies to

HasBaseType(Type)

Sets the base type of this query type in an inheritance hierarchy.

public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.QueryTypeBuilder HasBaseType (Type queryType);
abstract member HasBaseType : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.QueryTypeBuilder
override this.HasBaseType : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.QueryTypeBuilder
Public Overridable Function HasBaseType (queryType As Type) As QueryTypeBuilder

Parameters

queryType
Type

The base type.

Returns

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

Applies to