src/Shared/EntityFramework/Core/Query/PlanCompiler/VarInfoMap.cs
// <summary>
// Creates a var info for var variables of primitive or enum type.
// </summary>
// <param name="v"> Current variable of primitive or enum type. </param>
// <param name="newVar">
// The new variable replacing <paramref name="v" /> .
// </param>
// <returns>
// <see cref="PrimitiveTypeVarInfo" /> for <paramref name="v" /> .
// </returns>
Creates a var info for var variables of primitive or enum type.
Creates a var info for var variables of primitive or enum type .
[SuppressMessage("Microsoft.Globalization", "CA1303:Do not pass literals as localized parameters",
            MessageId = "System.Data.Entity.Core.Query.PlanCompiler.PlanCompiler.Assert(System.Boolean,System.String)")]
        internal VarInfo CreatePrimitiveTypeVarInfo(Var v, Var newVar)
        {
            DebugCheck.NotNull(v);
            DebugCheck.NotNull(newVar);
            PlanCompiler.Assert(TypeSemantics.IsScalarType(v.Type), "The current variable should be of primitive or enum type.");
            PlanCompiler.Assert(TypeSemantics.IsScalarType(newVar.Type), "The new variable should be of primitive or enum type.");
            VarInfo varInfo = new PrimitiveTypeVarInfo(newVar);
            m_map.Add(v, varInfo);
            return varInfo;
        }
[ SuppressMessage ( " " , " " , MessageId = " " ) ] internal VarInfo CreatePrimitiveTypeVarInfo ( Var v , Var newVar ) { DebugCheck . NotNull ( v ) ; DebugCheck . NotNull ( newVar ) ; PlanCompiler . Assert ( TypeSemantics . IsScalarType ( v . Type ) , " " ) ; PlanCompiler . Assert ( TypeSemantics . IsScalarType ( newVar . Type ) , " " ) ; VarInfo varInfo = new PrimitiveTypeVarInfo ( newVar ) ; m_map . Add ( v , varInfo ) ; return varInfo ; }
Creates a var info for var variables of primitive or enum type.
Creates a var info for var variables of primitive or enum type .
None
v
Var
Current variable of primitive or enum type.
Current variable of primitive or enum type .
newVar
Var
The new variable replacing  .
The new variable replacing .