QueryTypeBuilder<TQuery>.HasBaseType 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
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<TBaseType>() |
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<TQuery> HasBaseType (string name);
override this.HasBaseType : string -> Microsoft.EntityFrameworkCore.Metadata.Builders.QueryTypeBuilder<'Query (requires 'Query : null)>
Public Overridable Function HasBaseType (name As String) As QueryTypeBuilder(Of TQuery)
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<TQuery> HasBaseType (Type queryType);
override this.HasBaseType : Type -> Microsoft.EntityFrameworkCore.Metadata.Builders.QueryTypeBuilder<'Query (requires 'Query : null)>
Public Overridable Function HasBaseType (queryType As Type) As QueryTypeBuilder(Of TQuery)
Parameters
- queryType
- Type
The base type.
Returns
The same builder instance so that multiple configuration calls can be chained.
Applies to
HasBaseType<TBaseType>()
Sets the base type of this query type in an inheritance hierarchy.
public virtual Microsoft.EntityFrameworkCore.Metadata.Builders.QueryTypeBuilder<TQuery> HasBaseType<TBaseType> ();
override this.HasBaseType : unit -> Microsoft.EntityFrameworkCore.Metadata.Builders.QueryTypeBuilder<'Query (requires 'Query : null)>
Public Overridable Function HasBaseType(Of TBaseType) () As QueryTypeBuilder(Of TQuery)
Type Parameters
- TBaseType
The base type.
Returns
The same builder instance so that multiple configuration calls can be chained.
Applies to
Entity Framework