private static TableColumn GetColumnSchema(NameAndTypeDeclaration declaration)
        {
            var(name, type) = declaration
                              .GetImmediateDescendants <SyntaxNode>()
                              .ExtractChildren <NameDeclaration, PrimitiveTypeExpression>("Column pair");

            return(new TableColumn(new EntityName(name.SimpleName), type.Type.ValueText));
        }
示例#2
0
 public override T VisitNameAndTypeDeclaration(NameAndTypeDeclaration node)
 {
     throw new NotImplementedException();
 }