Dela via


RelationalStructuralTypeShaperExpression.WithType(ITypeBase) Method

Definition

Changes the structural type being shaped by this shaper.

public override Microsoft.EntityFrameworkCore.Query.StructuralTypeShaperExpression WithType (Microsoft.EntityFrameworkCore.Metadata.ITypeBase type);
override this.WithType : Microsoft.EntityFrameworkCore.Metadata.ITypeBase -> Microsoft.EntityFrameworkCore.Query.StructuralTypeShaperExpression
Public Overrides 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