Entity Namespace Problem

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for MySQL
Post Reply
Zero-G.
Posts: 398
Joined: Sat 09 Dec 2006 12:20

Entity Namespace Problem

Post by Zero-G. » 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:

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
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

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Mon 10 Nov 2008 08:58

This is a feature of the Microsoft EDM Wizard behaviour. Default behaviour was changed after migration from Entity Framework beta to Entity Framework V1 RTM: previously every model was placed at its own namespace, now - to the common namespace of application.

Zero-G.
Posts: 398
Joined: Sat 09 Dec 2006 12:20

Post by Zero-G. » Mon 10 Nov 2008 09:42

Hey

thank you for the response.

Is there any timeframe, you think, that the new dotConnect will be out of BETA?

THX

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Post by Shalex » Mon 10 Nov 2008 12:25

We are planning to release the final version of dotConnect for MySQL during a week. But the timeframe can be changed.

Post Reply