Share via


DbLikeExpression.Pattern Property

Definition

Gets an expression that specifies the pattern against which the given string should be compared.

public System.Data.Entity.Core.Common.CommandTrees.DbExpression Pattern { get; }
member this.Pattern : System.Data.Entity.Core.Common.CommandTrees.DbExpression
Public ReadOnly Property Pattern As DbExpression

Property Value

An expression that specifies the pattern against which the given string should be compared.

Exceptions

The expression is null.

The expression is not associated with the command tree of DbLikeExpression , or its result type is not a string type.

Applies to