Skip to content

Commit 16bfa26

Browse files
committed
Remove stuff related to compiled modals
1 parent 4fc0bfc commit 16bfa26

23 files changed

+1
-73963
lines changed

EFCore.VisualBasic/Design/EFCoreVisualBasicServices.vb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ Namespace Design
1515
.AddSingleton(Of IVisualBasicHelper, VisualBasicHelper)()
1616
.AddSingleton(Of IMigrationsCodeGenerator, VisualBasicMigrationsGenerator)()
1717
.AddSingleton(Of IModelCodeGenerator, VisualBasicModelGenerator)()
18-
19-
'Compiled Models
20-
.AddSingleton(Of IVisualBasicRuntimeAnnotationCodeGenerator, VisualBasicRuntimeAnnotationCodeGenerator)
21-
.AddSingleton(Of ICompiledModelCodeGenerator, VisualBasicRuntimeModelCodeGenerator)
2218
End With
2319
End Sub
2420
End Class

EFCore.VisualBasic/Design/IVisualBasicHelper.vb

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -350,33 +350,5 @@ Namespace Design
350350
''' <param name="importedTypeNamespace">The fully qualified namespace of the imported type</param>
351351
''' <returns></returns>
352352
Function ImportsClause(currentTypeNamespace As String, importedTypeNamespace As String) As String
353-
354-
''' <summary>
355-
''' Translates a node representing a statement into source code that would produce it.
356-
''' </summary>
357-
''' <param name="node">The node to be translated.</param>
358-
''' <param name="collectedNamespaces">Any namespaces required by the translated code will be added to this set.</param>
359-
''' <returns>Source code that would produce <paramref name="node" />.</returns>
360-
''' <remarks>
361-
''' This Is an internal API that supports the Entity Framework Core infrastructure And Not subject to
362-
''' the same compatibility standards as public APIs. It may be changed Or removed without notice in
363-
''' any release. You should only use it directly in your code with extreme caution And knowing that
364-
''' doing so can result in application failures when updating to a New Entity Framework Core release.
365-
''' </remarks>
366-
Function Statement(node As Expressions.Expression, collectedNamespaces As ISet(Of String)) As String
367-
368-
''' <summary>
369-
''' Translates a node representing an expression into source code that would produce it.
370-
''' </summary>
371-
''' <param name="node">The node to be translated.</param>
372-
''' <param name="collectedNamespaces">Any namespaces required by the translated code will be added to this set.</param>
373-
''' <returns>Source code that would produce <paramref name="node" />.</returns>
374-
''' <remarks>
375-
''' This Is an internal API that supports the Entity Framework Core infrastructure And Not subject to
376-
''' the same compatibility standards as public APIs. It may be changed Or removed without notice in
377-
''' any release. You should only use it directly in your code with extreme caution And knowing that
378-
''' doing so can result in application failures when updating to a New Entity Framework Core release.
379-
''' </remarks>
380-
Function Expression(node As Expressions.Expression, collectedNamespaces As ISet(Of String)) As String
381353
End Interface
382354
End Namespace

EFCore.VisualBasic/Design/IVisualBasicRuntimeAnnotationCodeGenerator.vb

Lines changed: 0 additions & 140 deletions
This file was deleted.

EFCore.VisualBasic/Design/Internal/VisualBasicHelper.vb

Lines changed: 0 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,7 @@ Imports System.Runtime.CompilerServices
55
Imports System.Security
66
Imports System.Text
77
Imports EntityFrameworkCore.VisualBasic
8-
Imports EntityFrameworkCore.VisualBasic.Design.Query.Internal
98
Imports Microsoft.CodeAnalysis
10-
Imports Microsoft.CodeAnalysis.Editing
119
Imports Microsoft.CodeAnalysis.VisualBasic
1210
Imports Microsoft.EntityFrameworkCore.Design
1311
Imports Microsoft.EntityFrameworkCore.Internal
@@ -25,17 +23,11 @@ Namespace Design.Internal
2523
Implements IVisualBasicHelper
2624

2725
Private ReadOnly _typeMappingSource As ITypeMappingSource
28-
Private ReadOnly _translator As LinqToVisualBasicSyntaxTranslator
2926

3027
Sub New(typeMappingSource As ITypeMappingSource)
3128
NotNull(typeMappingSource, NameOf(typeMappingSource))
3229

3330
_typeMappingSource = typeMappingSource
34-
35-
Dim workspace = New AdhocWorkspace()
36-
Dim syntaxGen = SyntaxGenerator.GetGenerator(workspace, LanguageNames.VisualBasic)
37-
38-
_translator = New LinqToVisualBasicSyntaxTranslator(syntaxGen)
3931
End Sub
4032

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

1312-
''' <summary>
1313-
''' This Is an internal API that supports the Entity Framework Core infrastructure And Not subject to
1314-
''' the same compatibility standards as public APIs. It may be changed Or removed without notice in
1315-
''' any release. You should only use it directly in your code with extreme caution And knowing that
1316-
''' doing so can result in application failures when updating to a New Entity Framework Core release.
1317-
''' </summary>
1318-
Public Overridable Function Statement(node As Expression, collectedNamespaces As ISet(Of String)) As String _
1319-
Implements IVisualBasicHelper.Statement
1320-
Dim sb As New StringBuilder
1321-
1322-
For Each e In _translator.TranslateStatement(node, collectedNamespaces)
1323-
sb.AppendLine(ToSourceCode(e))
1324-
Next
1325-
1326-
Return sb.ToString()
1327-
End Function
1328-
1329-
''' <summary>
1330-
''' This Is an internal API that supports the Entity Framework Core infrastructure And Not subject to
1331-
''' the same compatibility standards as public APIs. It may be changed Or removed without notice in
1332-
''' any release. You should only use it directly in your code with extreme caution And knowing that
1333-
''' doing so can result in application failures when updating to a New Entity Framework Core release.
1334-
''' </summary>
1335-
Public Overridable Function Expression(node As Expression, collectedNamespaces As ISet(Of String)) As String _
1336-
Implements IVisualBasicHelper.Expression
1337-
Return ToSourceCode(_translator.TranslateExpression(node, collectedNamespaces))
1338-
End Function
1339-
13401304
#Region "VB Namespace"
13411305
''' <summary>
13421306
''' This is an internal API that supports the Entity Framework Core infrastructure and not subject to

EFCore.VisualBasic/Design/Query/Internal/ILinqToVisualBasicSyntaxTranslator.vb

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)