public SqlQualifiedIdentifierNode Update(SqlIdentifierNode qualfier, ISqlNode id) { if (qualfier == Qualifier && id == Identifier) { return(this); } return(new SqlQualifiedIdentifierNode { Location = Location, Identifier = id, Qualifier = qualfier }); }
public SqlAliasNode Update(ISqlNode source, SqlIdentifierNode alias, SqlListNode <SqlIdentifierNode> columns) { if (source == Source && alias == Alias && columns == ColumnNames) { return(this); } return(new SqlAliasNode { Location = Location, Source = source, Alias = alias, ColumnNames = columns }); }
public SqlWithCteNode Update(SqlIdentifierNode name, SqlListNode <SqlIdentifierNode> columns, ISqlNode select, bool recursive) { if (name == Name && columns == ColumnNames && select == Select && recursive == Recursive) { return(this); } return(new SqlWithCteNode { Location = Location, Name = name, ColumnNames = columns, Select = select, Recursive = recursive }); }
public SqlObjectIdentifierNode Update(SqlIdentifierNode server, SqlIdentifierNode db, SqlIdentifierNode schema, SqlIdentifierNode name) { if (server == Server && db == Database && schema == Schema && name == Name) { return(this); } return(new SqlObjectIdentifierNode { Location = Location, Server = server, Database = db, Schema = schema, Name = name }); }
public SqlObjectIdentifierNode(string server, string database, string schema, string name) { if (!string.IsNullOrEmpty(server)) { Server = new SqlIdentifierNode(server); } if (!string.IsNullOrEmpty(database)) { Database = new SqlIdentifierNode(database); } if (!string.IsNullOrEmpty(schema)) { Schema = new SqlIdentifierNode(schema); } Name = new SqlIdentifierNode(name); }
public SqlQualifiedIdentifierNode(SqlToken token) { Location = token.Location; Identifier = new SqlIdentifierNode(token); }