public string Build(string table)
        {
            var columns = new List <string>();
            var values  = new List <string>();

            foreach (var pair in fields)
            {
                columns.Add(pair.Key);
                values.Add(ValueFormat.GenerateFormattedValueForQuery(pair.Value));
            }

            return($"REPLACE INTO {table} ({string.Join(", ", columns)}) VALUES ({string.Join(", ", values)})");
        }
示例#2
0
 internal override string GenerateCondition()
 {
     return(string.Format(GenerateConditionFormat(), ValueFormat.GenerateFormattedValueForQuery(Value)));
 }
示例#3
0
 internal override string GenerateCondition()
 {
     return($"{PrependTable()}{Column} LIKE {ValueFormat.GenerateFormattedValueForQuery(Value)}");
 }
示例#4
0
 private static string ConvertValueWhereQueryCondition(object betweenFrom, object betweenTo)
 {
     return($"{ValueFormat.GenerateFormattedValueForQuery(betweenFrom)} AND {ValueFormat.GenerateFormattedValueForQuery(betweenTo)}");
 }