Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 0 additions & 4 deletions EFCore.VisualBasic/Design/EFCoreVisualBasicServices.vb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,6 @@ Namespace Design
.AddSingleton(Of IVisualBasicHelper, VisualBasicHelper)()
.AddSingleton(Of IMigrationsCodeGenerator, VisualBasicMigrationsGenerator)()
.AddSingleton(Of IModelCodeGenerator, VisualBasicModelGenerator)()

'Compiled Models
.AddSingleton(Of IVisualBasicRuntimeAnnotationCodeGenerator, VisualBasicRuntimeAnnotationCodeGenerator)
.AddSingleton(Of ICompiledModelCodeGenerator, VisualBasicRuntimeModelCodeGenerator)
End With
End Sub
End Class
Expand Down
28 changes: 0 additions & 28 deletions EFCore.VisualBasic/Design/IVisualBasicHelper.vb
Original file line number Diff line number Diff line change
Expand Up @@ -350,33 +350,5 @@ Namespace Design
''' <param name="importedTypeNamespace">The fully qualified namespace of the imported type</param>
''' <returns></returns>
Function ImportsClause(currentTypeNamespace As String, importedTypeNamespace As String) As String

''' <summary>
''' Translates a node representing a statement into source code that would produce it.
''' </summary>
''' <param name="node">The node to be translated.</param>
''' <param name="collectedNamespaces">Any namespaces required by the translated code will be added to this set.</param>
''' <returns>Source code that would produce <paramref name="node" />.</returns>
''' <remarks>
''' This Is an internal API that supports the Entity Framework Core infrastructure And Not subject to
''' the same compatibility standards as public APIs. It may be changed Or removed without notice in
''' any release. You should only use it directly in your code with extreme caution And knowing that
''' doing so can result in application failures when updating to a New Entity Framework Core release.
''' </remarks>
Function Statement(node As Expressions.Expression, collectedNamespaces As ISet(Of String)) As String

''' <summary>
''' Translates a node representing an expression into source code that would produce it.
''' </summary>
''' <param name="node">The node to be translated.</param>
''' <param name="collectedNamespaces">Any namespaces required by the translated code will be added to this set.</param>
''' <returns>Source code that would produce <paramref name="node" />.</returns>
''' <remarks>
''' This Is an internal API that supports the Entity Framework Core infrastructure And Not subject to
''' the same compatibility standards as public APIs. It may be changed Or removed without notice in
''' any release. You should only use it directly in your code with extreme caution And knowing that
''' doing so can result in application failures when updating to a New Entity Framework Core release.
''' </remarks>
Function Expression(node As Expressions.Expression, collectedNamespaces As ISet(Of String)) As String
End Interface
End Namespace

This file was deleted.

36 changes: 0 additions & 36 deletions EFCore.VisualBasic/Design/Internal/VisualBasicHelper.vb
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ Imports System.Runtime.CompilerServices
Imports System.Security
Imports System.Text
Imports EntityFrameworkCore.VisualBasic
Imports EntityFrameworkCore.VisualBasic.Design.Query.Internal
Imports Microsoft.CodeAnalysis
Imports Microsoft.CodeAnalysis.Editing
Imports Microsoft.CodeAnalysis.VisualBasic
Imports Microsoft.EntityFrameworkCore.Design
Imports Microsoft.EntityFrameworkCore.Internal
Expand All @@ -25,17 +23,11 @@ Namespace Design.Internal
Implements IVisualBasicHelper

Private ReadOnly _typeMappingSource As ITypeMappingSource
Private ReadOnly _translator As LinqToVisualBasicSyntaxTranslator

Sub New(typeMappingSource As ITypeMappingSource)
NotNull(typeMappingSource, NameOf(typeMappingSource))

_typeMappingSource = typeMappingSource

Dim workspace = New AdhocWorkspace()
Dim syntaxGen = SyntaxGenerator.GetGenerator(workspace, LanguageNames.VisualBasic)

_translator = New LinqToVisualBasicSyntaxTranslator(syntaxGen)
End Sub

Private Shared ReadOnly _literalFuncs As New Dictionary(Of Type, Func(Of VisualBasicHelper, Object, String)) From {
Expand Down Expand Up @@ -1309,34 +1301,6 @@ Namespace Design.Internal
Return node.NormalizeWhitespace().ToFullString()
End Function

''' <summary>
''' This Is an internal API that supports the Entity Framework Core infrastructure And Not subject to
''' the same compatibility standards as public APIs. It may be changed Or removed without notice in
''' any release. You should only use it directly in your code with extreme caution And knowing that
''' doing so can result in application failures when updating to a New Entity Framework Core release.
''' </summary>
Public Overridable Function Statement(node As Expression, collectedNamespaces As ISet(Of String)) As String _
Implements IVisualBasicHelper.Statement
Dim sb As New StringBuilder

For Each e In _translator.TranslateStatement(node, collectedNamespaces)
sb.AppendLine(ToSourceCode(e))
Next

Return sb.ToString()
End Function

''' <summary>
''' This Is an internal API that supports the Entity Framework Core infrastructure And Not subject to
''' the same compatibility standards as public APIs. It may be changed Or removed without notice in
''' any release. You should only use it directly in your code with extreme caution And knowing that
''' doing so can result in application failures when updating to a New Entity Framework Core release.
''' </summary>
Public Overridable Function Expression(node As Expression, collectedNamespaces As ISet(Of String)) As String _
Implements IVisualBasicHelper.Expression
Return ToSourceCode(_translator.TranslateExpression(node, collectedNamespaces))
End Function

#Region "VB Namespace"
''' <summary>
''' This is an internal API that supports the Entity Framework Core infrastructure and not subject to
Expand Down

This file was deleted.

Loading
Loading