Quote() public static method

public static Quote ( string name ) : string
name string
return string
Beispiel #1
0
        private DbCommand GetSelectCommand()
        {
            IEnumerable <string> columns;

            if (this._withColumns == null || this._withColumns.Count <= 0)
            {
                columns = this.Table.Columns.Select(c => SqliteWriter.Quote(c.Name));
            }
            else
            {
                columns = this._withColumns.Select(c => SqliteWriter.Quote(c.ColumnName));
            }
            return(this.GenerateCommand(string.Join(", ", columns)));
        }
Beispiel #2
0
        private void GetSelectCommand(out string query, out object[] args)
        {
            IEnumerable <string> columns;

            if (this._withColumns == null || this._withColumns.Count <= 0)
            {
                columns = this.Table.Columns.Select(c => SqliteWriter.Quote(c.Name));
            }
            else
            {
                columns = this._withColumns.Select(c => SqliteWriter.Quote(c.ColumnName));
            }

            this.GenerateCommandSql(string.Join(", ", columns.ToArray()), out query, out args);
        }