Not there yet...
I can go through the prompts and successfully create my edmx file with all
of the associations, but when I try the following code on the form load
event:
Imports System
Imports System.Data.EntityClient
Public Class FormTeams
Private Teams1 As MyCustomEntities
Private Sub FormTeams_Load
Teams1 = New MyCustomEntities
TEAMBindingSource.DataSource =
Teams1.TEAMS.OrderBy(Function(TEAMS) TEAMS.TEAMID)
-------------------------------------
I get another "SystemBadImageFormatEception" An attempt was made to load a
program with a incorrect format. (Exeption from HRESULT: 0x8007000B)
What did I do wrong or what am I missing?
Is the following EF connection string wrong?
--------------------------------------
My existing EF connection string in the app config file is:
<connectionStrings>
<add name="MyCustomEntities"
connectionString="metadata=res://*/MyCustomModel.csdl|res://*/MyCustomModel.ssdl|res://*/MyCustomModel.msl;provider=FirebirdSql.Data.FirebirdClient;provider
connection string='initial catalog="C:\Users\MyName\Documents\Visual
Studio 2008\Projects\My FirebirdEF
Experiment\bin\Debug\MyDatabase.FDB";data source=localhost;user
id=SYSDBA;server type=1;password=masterkey'"
providerName="System.Data.EntityClient" />
</connectionStrings>
Can I shorten it to the following?
Using the |DataDirectory|.
<connectionStrings>
<add name="MyCustomEntities"
connectionString="metadata=res://*/MyCustomModel.csdl|res://*/MyCustomModel.ssdl|res://*/MyCustomModel.msl;provider=FirebirdSql.Data.FirebirdClient;provider
connection string='initial
catalog="|DataDirectory|\MyDatabase.FDB";data
source=localhost;user id=SYSDBA;server type=1;password=masterkey'"
providerName="System.Data.EntityClient" />
</connectionStrings>
-----------------------------------
Thanks
------------------------------------------------------------------------------
SOLARIS 10 is the OS for Data Centers - provides features such as DTrace,
Predictive Self Healing and Award Winning ZFS. Get Solaris 10 NOW
http://p.sf.net/sfu/solaris-dev2dev
_______________________________________________
Firebird-net-provider mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/firebird-net-provider