DbExpressionBuilder.Null(TypeUsage) Method

Definition

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

C#
public static System.Data.Common.CommandTrees.DbNullExpression Null(this System.Data.Metadata.Edm.TypeUsage nullType);

Parameters

nullType
TypeUsage

The type of the null value.

Returns

An instance of DbNullExpression.

Exceptions

nullType is null.

Applies to

Product Versions
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1