Share via


ParameterTranslationMode Enum

Definition

Indicates how parameterized collections are translated into SQL.

public enum ParameterTranslationMode
type ParameterTranslationMode = 
Public Enum ParameterTranslationMode
Inheritance
ParameterTranslationMode

Fields

Name Value Description
MultipleParameters 0

Instructs EF to translate the collection to a set of parameters: WHERE [x].[Id] IN (@ids1, @ids2, @ids3).

Constant 1

Instructs EF to translate the collection to a set of constants: WHERE [x].[Id] IN (1, 2, 3).

Parameter 2

Instructs EF to translate the collection to a single array-like parameter: WHERE [x].[Id] IN (SELECT [i].[value] FROM OPENJSON(@ids) ...).

Applies to