Subsonic 3.0.0.3 with MySQL 4template is not working - mysql

I am ready and see all the tutorials and videos to configure the subsonic 3.0.0.3 with MySql and fail to genarate the ActiveRecords.cs. I use the MySQL.ttinclude in the folder to generate the class but it is still not working. I rename all the refenreces to SQLServer.ttinclude to MySQL.ttinclude and it still does not work. The error is: Metadata file "MySql.Data" could not by found.
I really need to use the subsonic version 3.0.0.3 with MySql 5.1.

I ran into the same issue. Make sure you actually run the installer for the MySQL connector as that put everything in the GAC. I tried to get it to work by just adding the ref to MySql.Data, and I got the same error as you. Everything worked perfectly once I ran their install.

Yes, all reference is setting. The two dlls Subsonic.core.dll and MySql.Data.dll. I think that's probable a bug int the 4templates for MySql. Many people still have problems whit the version for MySql. In the videos of rob for configurin and setting MySQL generate, it still work perfectly, but the files in the pack 3.0.0.3 are different.

dunno if you got same problem but i had trouble and it was because i had a C# project but was using the VB templates and it never created the files, also i have used mysql connector 6.1 if this helps as i think this is the most compatable version when it comes to stuff like this.

Yes, Iam using MySQL Connector 6.1 whit provider. Now I try to generate my class with the 4Templates to LINQ, but I don't have success. I see this error in VStudio 2008
Warning 1 Multiple template directives were found in the template. All but the first one will be ignored. Multiple parameters to the template directive should be specified within one template directive.
When I try to generate the class with the templates for Active Record, It's works, wonderfull, but I realy need the LINQ templates class generated.

Related

Using directive for package added in Visual Studio Code

I'm trying trying to build a web app with ASP.NET Core 3.0 and using VS Code to do it. Moreover, I'm using MySQL for my database, and this is where things are getting rough. It seems like there's very little support out there for this particular combination of VS Code and MySQL.
I can't find any tutorials with this particular combination, so I can't figure out how to put it all together. I ran the dotnet add package Mysql command, which installed the package, and I see that it's been added to the .csproj file, except now I don't know how to make use of it in my Model file. I'm trying to find the using directive for it, but I can't find any posts on any forums addressing this issue.

Datasnap / dbExpress deployment issues

I'm playing around with setting up a Datasnap server on IIS at the moment.
I have managed to get the default Datasnap / Javascript demo to work, and have extended it to include my own string based results to a version of the webpage.
However I am being stumped moving to the next level.
I want to add in a database module and return results from a MySQL database accessed via dbExpress.
As soon as I add a datamodule with a TSQLConnection and TSQLQuery on it and roll out the compiled dll the server stops working. Remove the Datamodule and recompile and everything is fine.
I've tried adding the libmysql.dll and dbxmysql.dll to the website root and adding them to the ISAPI restriction list to allow them to run, but I'm obviously missing something else.
Update
Following some more testing the core issue is with adding an extra datamodule for the TSQLConnection & TSQLQuery. If I include these on the TServerMethods1 unit then the app works...
Dan, insert MidasLib in your USES clause, better than deploying another dll, this will keep everything you need in your executable.

mysql.data conflict something in my entity framework project

I'm using MySQL database in my Ado.Net project. So I am using entity framework model first. It is good but when i want to add "mysql.data" (which i get from mysql web site named mysql data connector) to the Referances, it gives me an error like this: "object reference not set to an instance of an object". When i remove mysql.data from Referances, it works good. I think, it may cause mysq.data. I want to use mysql.data for searching queries. Because i don't know to code searching queries entity framework in my mysql ado.net project.
Could you help me, how do I solve the problem? I want to use both mysql.data and entity framework model first in my project.
Sincerely yours.
Now, I solved the problem. I provided "mysql.data.entity.dll" from MySQL web site, I added to referances and now everything is good.

generated StoredProcedures.vb class is empty

i've added to my MySQL database, 2 stored procedures, then generated data access classes using the Subsonic Tool in visual studio... i notice that the StoredProcedures.cs class is empty.. why is that? and what do i do now? how will i use my stored procedures i my application?
im using subsonic 2.1 and mysql administrator 5.0..
please.. i need your help.. thanks in advance
I think I may be getting the same problem..
please see my post for suggestions (as of yet I've not fixed my problem yet)
Subsonic, setting useSPs="true" doesn't seem to work. SPs aren't being generated
and just as what i have previously read, it has to do with compatibity issues..
previously, i was using subsonic 2.1 and mysql 5.5 so i think their versions are not compatible.. i downgraded mine to subsonic 2.0 and mysql 5.0 instead and it worked.

SubSonic Generates Namespace, but my website doesn't recognize it.

I've got a pretty basic setup in Visual Studio 2008 - Website project referencing my class library project. SubSonic 3 is referenced from both projects, but the template has been modified for my MySQL db. It connects and generates the most of code (except for stored procedures, for some reason), and the namespace is there, and my intellisense picks it up while coding in the website project, I still get build errors saying that the namespace doesn't exist.
It's driving me crazy, and it know (hope) it's probably simple, but I've not had enough sleep to rationalize the problem. Any help would be incredibly appreciated!
Thank you in advance.
-Zam
P.S. I've used SubSonic earlier versions, but never with MySQL.
Does the project reference the subsonic dll and the mysql .net connector?