public static void Build(CreateUserStatementNode node, ICollection<SqlStatement> statements) { if (node.Identificator is IdentifiedByPasswordNode) { var passwordNode = (IdentifiedByPasswordNode) node.Identificator; var password = ExpressionBuilder.Build(passwordNode.Password); statements.Add(new CreateUserStatement(node.UserName, password)); } else { throw new NotSupportedException(); } }
private void BuildCreateUser(CreateUserStatementNode node) { CreateUser.Build(node, statements); }