public ORMModelTree Extract(MethodDeclarationSyntax methodDeclarationSyntaxNode) { var methodDeclaration = new MethodDeclaration(methodDeclarationSyntaxNode.Identifier.Text, methodDeclarationSyntaxNode.GetCompilationInfo()); this._ORMModelTree = new ORMModelTree(new ORMModelNode(methodDeclaration)); var extractor = new LINQToSQLDatabaseAccessingMethodCallExtractor(null, null, _databaseQueries.ToList(), null, null, null); extractor.Visit(methodDeclarationSyntaxNode); foreach (var dbAccessingMethodCall in extractor.DatabaseAccessingMethodCalls) { var ORMModelNode = new ORMModelNode(dbAccessingMethodCall); _ORMModelTree.RootNode.ChildNodes.Add(ORMModelNode); } return(_ORMModelTree); }