本文整理汇总了C#中ISqlNode.FindNodes方法的典型用法代码示例。如果您正苦于以下问题:C# ISqlNode.FindNodes方法的具体用法?C# ISqlNode.FindNodes怎么用?C# ISqlNode.FindNodes使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ISqlNode
的用法示例。
在下文中一共展示了ISqlNode.FindNodes方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: OnChildNode
protected override ISqlNode OnChildNode(ISqlNode node)
{
if (node.NodeName == "user_list") {
UserNames = node.FindNodes<IdentifierNode>().Select(x => x.Text);
}
return base.OnChildNode(node);
}
示例2: OnChildNode
protected override ISqlNode OnChildNode(ISqlNode node)
{
if (node.NodeName.Equals("insert_tuple")) {
Values = node.FindNodes<InsertValueNode>();
}
return base.OnChildNode(node);
}
示例3: OnChildNode
protected override ISqlNode OnChildNode(ISqlNode node)
{
if (node.NodeName.Equals("plsql_statement_list")) {
GetStatements(node);
} else if (node.NodeName.Equals("exception_block_opt")) {
ExceptionHandlers = node.FindNodes<ExceptionHandlerNode>();
}
return base.OnChildNode(node);
}
示例4: OnChildNode
protected override ISqlNode OnChildNode(ISqlNode node)
{
if (node is IdentifierNode) {
UserName = ((IdentifierNode) node).Text;
} else if (node.NodeName.Equals("action_list")) {
Actions = node.FindNodes<IAlterUserActionNode>();
}
return base.OnChildNode(node);
}
示例5: OnChildNode
protected override ISqlNode OnChildNode(ISqlNode node)
{
if (node is ObjectNameNode) {
TableName = ((ObjectNameNode) node).Name;
} else if (node is CreateTableNode) {
CreateTable = (CreateTableNode)node;
} else if (node.NodeName == "alter_actions") {
Actions = node.FindNodes<IAlterActionNode>();
}
return base.OnChildNode(node);
}
示例6: OnChildNode
protected override ISqlNode OnChildNode(ISqlNode node)
{
if (node.NodeName.Equals("plsql_label_opt")) {
var labelNode = node.FindNode<LabelNode>();
if (labelNode != null)
Label = labelNode.Text;
} else if (node.NodeName.Equals("declare_statement_opt")) {
Declarations = node.FindNodes<IDeclareNode>();
} else if (node is PlSqlCodeBlockNode) {
CodeBlock = (PlSqlCodeBlockNode) node;
}
return base.OnChildNode(node);
}
示例7: OnChildNode
protected override ISqlNode OnChildNode(ISqlNode node)
{
if (node is ObjectNameNode) {
TableName = ((ObjectNameNode) node).Name;
} else if (node.NodeName == "column_set_list") {
Columns = node.FindNodes<UpdateColumnNode>();
} else if (node.NodeName == "update_where") {
WhereExpression = node.FindNode<IExpressionNode>();
} else if (node.NodeName == "limit_opt") {
var child = node.FindNode<IntegerLiteralNode>();
if (child != null)
Limit = (int) child.Value;
}
return base.OnChildNode(node);
}
示例8: OnChildNode
protected override ISqlNode OnChildNode(ISqlNode node)
{
if (node is IdentifierNode) {
CursorName = ((IdentifierNode) node).Text;
} else if (node.NodeName.Equals("cursor_args_opt")) {
Parameters = node.FindNodes<CursorParameterNode>();
} else if (node is IExpressionNode) {
QueryExpression = (SqlQueryExpressionNode) node;
} else if (node.NodeName.Equals("insensitive_opt")) {
Insensitive = node.ChildNodes.Any();
} else if (node.NodeName.Equals("scroll_opt")) {
Scroll = node.ChildNodes.Any();
}
return base.OnChildNode(node);
}
示例9: OnChildNode
protected override ISqlNode OnChildNode(ISqlNode node)
{
if (node is IdentifierNode) {
ColumnName = ((IdentifierNode) node).Text;
} else if (node is DataTypeNode) {
DataType = ((DataTypeNode) node);
} else if (node.NodeName.Equals("column_default_or_identity_opt")) {
GetDefaultOrIdentity(node);
} else if (node.NodeName.Equals("column_constraint_list")) {
Constraints = node.FindNodes<ColumnConstraintNode>();
}
return base.OnChildNode(node);
}
示例10: GetMeta
private void GetMeta(ISqlNode node)
{
if (node == null)
return;
var metas = node.FindNodes<DataTypeMetaNode>();
foreach (var meta in metas) {
Metadata[meta.Name] = meta.Value;
}
}