Share via


DbExpressionBuilder.Null(TypeUsage) Method

Definition

Creates a new DbNullExpression, which represents a typed null value.

public static System.Data.Entity.Core.Common.CommandTrees.DbNullExpression Null (this System.Data.Entity.Core.Metadata.Edm.TypeUsage nullType);
static member Null : System.Data.Entity.Core.Metadata.Edm.TypeUsage -> System.Data.Entity.Core.Common.CommandTrees.DbNullExpression
<Extension()>
Public Function Null (nullType As TypeUsage) As DbNullExpression

Parameters

nullType
TypeUsage

The type of the null value.

Returns

An instance of DbNullExpression.

Exceptions

nullType is null.

Applies to