コード例 #1
0
 public SqlQualifiedIdentifierNode Update(SqlIdentifierNode qualfier, ISqlNode id)
 {
     if (qualfier == Qualifier && id == Identifier)
     {
         return(this);
     }
     return(new SqlQualifiedIdentifierNode
     {
         Location = Location,
         Identifier = id,
         Qualifier = qualfier
     });
 }
コード例 #2
0
ファイル: SqlAliasNode.cs プロジェクト: Whiteknight/SqlParser
 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
     });
 }
コード例 #3
0
 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
     });
 }
コード例 #4
0
 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
     });
 }
コード例 #5
0
 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);
 }
コード例 #6
0
 public SqlQualifiedIdentifierNode(SqlToken token)
 {
     Location   = token.Location;
     Identifier = new SqlIdentifierNode(token);
 }