sdk/dotnet/src/Microsoft.Datasync.Client.SQLiteStore/Utils/SqlStatements.cs
/// <summary>
/// Adds a parameter to the parameter set and returns the parameter name.
/// </summary>
/// <param name="item">The item being processed.</param>
/// <param name="column">The column definition.</param>
/// <param name="parameters">The current set of parameters.</param>
/// <returns>The parameter name.</returns>
Adds a parameter to the parameter set and returns the parameter name.
Adds a parameter to the parameter set and returns the parameter name .
private static string AddParameter(JObject item, ColumnDefinition column, Dictionary<string, object> parameters)
        {
            JToken rawValue = item.GetValue(column.Name, StringComparison.OrdinalIgnoreCase);
            object value = column.SerializeValue(rawValue);
            string paramName = $"@p{parameters.Count}";
            parameters[paramName] = value;
            return paramName;
        }
private static string AddParameter ( JObject item , ColumnDefinition column , Dictionary < string , object > parameters ) { JToken rawValue = item . GetValue ( column . Name , StringComparison . OrdinalIgnoreCase ) ; object value = column . SerializeValue ( rawValue ) ; string paramName = $" @p { parameters . Count } " ; parameters [ paramName ] = value ; return paramName ; }
Adds a parameter to the parameter set and returns the parameter name.
Adds a parameter to the parameter set and returns the parameter name .
The parameter name.
The parameter name .
item
JObject
The item being processed.
The item being processed .
column
ColumnDefinition
The column definition.
The column definition .
parameters
Dictionary<string, object>
The current set of parameters.
The current set of parameters .