Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
cannot use dbMetal with MySQL (HELP)
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Mohammed BENJELLOUN  
View profile  
 More options May 19 2012, 6:48 am
From: Mohammed BENJELLOUN <mb.cinfo...@gmail.com>
Date: Sat, 19 May 2012 03:48:17 -0700 (PDT)
Local: Sat, May 19 2012 6:48 am
Subject: cannot use dbMetal with MySQL (HELP)
Hello,

I'm trying to use Linq 2 with mysql in console application with v4
of .net framework,

I successfully generate .cs and .dbml files and copy them in my
project (with DbMetal.exe.config file). I already add references
(dblinq, dblinq.mysql,dblinq.sqlserver,mysql.data,system.data.linq).

I think that's all i need to do ?

now when i compil my project i have somme errors :

Error   2       Cannot implicitly convert type
'DbLinq.Data.Linq.Table<ConsoleApplication2.Client>' to
'System.Data.Linq.Table<ConsoleApplication2.Client>'      c:\users
\benjelloun\documents\visual studio 2010\Projects
\ConsoleApplication2\ConsoleApplication2\file.designer.cs       73      12
ConsoleApplication2

and :

Error   1       'MySql' is a 'namespace' but is used like a 'type'      c:\users
\benjelloun\documents\visual studio 2010\Projects
\ConsoleApplication2\ConsoleApplication2\file.designer.cs       26      61
ConsoleApplication2

here :
[global::System.Data.Linq.Mapping.ProviderAttribute(typeof(MySql))]

To resolve this problems i comment the first and for the second i
change it to :

[global::System.Data.Linq.Mapping.ProviderAttribute(typeof(DbLinq.MySql.MyS qlSqlProvider))]

The problem now is when i exetute the application, it cannot
initialize the database connection in DataContext file :

public MFPMonitorDbServer(string connectionString) :
                                base(connectionString)
                {
                        this.OnCreated();
                }

and i have this error (no source available) :

The file 'z:\Development\DbLinq-0.20.1\src\DbLinq\Data\Linq
\DataContext.cs' does not exist.

and i don't have this path in my computer

NOTE :
i have the same problem if i use .cs file allone (without .dbml file)

Please help me ??


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Mohammed BENJELLOUN  
View profile  
 More options May 19 2012, 6:48 am
From: Mohammed BENJELLOUN <mb.cinfo...@gmail.com>
Date: Sat, 19 May 2012 03:48:18 -0700 (PDT)
Local: Sat, May 19 2012 6:48 am
Subject: cannot use dbMetal with MySQL (HELP)
Hello,

I'm trying to use Linq 2 with mysql in console application with v4
of .net framework,

I successfully generate .cs and .dbml files and copy them in my
project (with DbMetal.exe.config file). I already add references
(dblinq, dblinq.mysql,dblinq.sqlserver,mysql.data,system.data.linq).

I think that's all i need to do ?

now when i compil my project i have somme errors :

Error   2       Cannot implicitly convert type
'DbLinq.Data.Linq.Table<ConsoleApplication2.Client>' to
'System.Data.Linq.Table<ConsoleApplication2.Client>'      c:\users
\benjelloun\documents\visual studio 2010\Projects
\ConsoleApplication2\ConsoleApplication2\file.designer.cs       73      12
ConsoleApplication2

and :

Error   1       'MySql' is a 'namespace' but is used like a 'type'      c:\users
\benjelloun\documents\visual studio 2010\Projects
\ConsoleApplication2\ConsoleApplication2\file.designer.cs       26      61
ConsoleApplication2

here :
[global::System.Data.Linq.Mapping.ProviderAttribute(typeof(MySql))]

To resolve this problems i comment the first and for the second i
change it to :

[global::System.Data.Linq.Mapping.ProviderAttribute(typeof(DbLinq.MySql.MyS qlSqlProvider))]

The problem now is when i exetute the application, it cannot
initialize the database connection in DataContext file :

public MFPMonitorDbServer(string connectionString) :
                                base(connectionString)
                {
                        this.OnCreated();
                }

and i have this error (no source available) :

The file 'z:\Development\DbLinq-0.20.1\src\DbLinq\Data\Linq
\DataContext.cs' does not exist.

and i don't have this path in my computer

NOTE :
i have the same problem if i use .cs file allone (without .dbml file)

Please help me ??


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dev...@gmail.com  
View profile  
 More options Aug 5 2012, 6:16 am
From: dev...@gmail.com
Date: Sun, 5 Aug 2012 03:16:57 -0700 (PDT)
Local: Sun, Aug 5 2012 6:16 am
Subject: Re: cannot use dbMetal with MySQL (HELP)

I had the same issue. The .dbml file had not been connected to .cs file.
After we add the .dbml file, VS automatically generates a corresponding cs
file which is different from the cs file generated by DbMetal.

solution:
1- add the .dbml file
2- add the .cs file (choose over write the existing cs file)

worked for me.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »