Share via


StructuralTypeShaperExpression.WithType(ITypeBase) Method

Definition

Changes the structural type being shaped by this shaper.

public virtual Microsoft.EntityFrameworkCore.Query.StructuralTypeShaperExpression WithType (Microsoft.EntityFrameworkCore.Metadata.ITypeBase type);
abstract member WithType : Microsoft.EntityFrameworkCore.Metadata.ITypeBase -> Microsoft.EntityFrameworkCore.Query.StructuralTypeShaperExpression
override this.WithType : Microsoft.EntityFrameworkCore.Metadata.ITypeBase -> Microsoft.EntityFrameworkCore.Query.StructuralTypeShaperExpression
Public Overridable Function WithType (type As ITypeBase) As StructuralTypeShaperExpression

Parameters

type
ITypeBase

The new type to use.

Returns

This expression if the type was not changed, or a new expression with the updated type.

Applies to