Entity Namespace Problem
Posted: Sat 08 Nov 2008 14:16
Hey
I have played around with both Versions: 5.0 BETA & 4.8.5.-36
The problem seems to be in both versions...
I create a new Project (VB.NET 2008+SP1 & FW 3.5 SP1)
To this project, I add a ADO.NET Entity Model, chosse my Databases & let it create by the Designer. - Till here, everything looks fine. - But when I try to add the Model by the DataSource Add New, I can't see the new Namespace, like in your Samples.
I've look around the whole project and found out, that in the Modelbrowser, the Namespace is set, but not in the autogenerated code, there the first lines look like:
As you can see, the Namespace should be voptneuModelNS - but it is not declared, when I enter it by hand, everything seems to work fine, but even, when I load the project new, it has gone.... - Am I doing soemthing wrong, or is this a bug?
THX
I have played around with both Versions: 5.0 BETA & 4.8.5.-36
The problem seems to be in both versions...
I create a new Project (VB.NET 2008+SP1 & FW 3.5 SP1)
To this project, I add a ADO.NET Entity Model, chosse my Databases & let it create by the Designer. - Till here, everything looks fine. - But when I try to add the Model by the DataSource Add New, I can't see the new Namespace, like in your Samples.
I've look around the whole project and found out, that in the Modelbrowser, the Namespace is set, but not in the autogenerated code, there the first lines look like:
Code: Select all
'------------------------------------------------------------------------------
'
' Dieser Code wurde von einem Tool generiert.
' Laufzeitversion:2.0.50727.3053
'
' Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
' der Code erneut generiert wird.
'
'------------------------------------------------------------------------------
Option Strict Off
Option Explicit On
'Name der Ursprungsdatei:
'Erstellungsdatum: 08.11.2008 15:13:06
'''
'''Es gibt keine Kommentare für voptneuEntities im Schema.
'''
Partial Public Class voptneuEntities
Inherits Global.System.Data.Objects.ObjectContext
'''
'''Initialisiert ein neues voptneuEntities-Objekt mithilfe der in Abschnitt 'voptneuEntities' der Anwendungskonfigurationsdatei gefundenen Verbindungszeichenfolge.
'''
Public Sub New()
MyBase.New("name=voptneuEntities", "voptneuEntities")
Me.OnContextCreated
End Sub
THX