generated StoredProcedures.vb class is empty - mysql

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.

Related

.NET Async/Await for ODBC

I've been looking into tuts about how to implement Async/Await. I already used it to read text files and process long loops and yeah it improved the responsiveness of my application.
What I'm looking for right now is how to use it in connecting to and getting data from a database.
I'm currently using ODBC to interact with MySQL. According to some tuts, functions like ExecuteNonQueryAsync is only available to SQLClient. If I'm not mistaken, I can't use SQLClient to interact with MySQL. Also tried using MySqlClient, I got nothing.
Did I miss anything or should I start thinking of another way? I'm open to other means.
Thanks in advance!

Devforce code-first with Mysql

I have been trying to experiment Devforce code-first with MySql. But am not able to find any resources explaining how to do it. Even am not able to find whether DevForce code-first supports MySql or not. (EF supports). Please help!
Thanks,
Kannan
DevForce is generally ignorant about the underlying database provider, and doesn't have any special requirements to work with MySQL. If you follow DevForce documentation for working with Code First, along with MySQL documentation for working with EF, you should be on the right track. If you're using a paid version of DevForce, contact support directly to get more information if you run into problems.

Type provider for MySql

I've been searching for an example on how to connect to a MySql database and use F# type providers but I could not find anything online.
Can anyone give me a clue? What - if any - extra packages do I need? Do I use SqlDataConnection or SqlEntityConnection.
Excuse my ignorance but I'm totally lost. Any and all help is appreciated. I love the idea of type providers and have a fair amount of experience with functional programing but it's the setup around this that gets me.
I don't think there is out-of-the box type provider that would work with MySQL at the moment. However, Ross McKinlay has been working on a better type provider for SQL databases (more generally). It currently works with MS SQL server and SQL Lite.
It should be possible to write an extension to support MySQL with fairly small amount of work (but sadly, it has not been done yet). See his blog for details. I'm sure that contributions are welcome!
I haven't tested this, but if Entity Framework works with MySql (it does) and if F# has an Entity Framework Type Provider (it does) then I would expect the Entity Framework Type Provider to work with MySql.
Have you tried that approach?
If you are still interested, I recently added support for MySQL to my SQL type provider, help with testing would be good!
A general SQL database type provider, supporting LINQ queries, schema
exploration, individuals and much more besides.
The provider currently supports MS SQL Server, SQLite, PostgreSQL,
Oracle, MySQL and MS Access. All database vendors except SQL Server
and MS Access will require 3rd party ADO.NET connector objects to
function. These are dynamically loaded at runtime so that the SQL
provider project is not dependent on them. You must supply the
location of the assemblies with the "ResolutionPath" static parameter.
https://fsprojects.github.io/SQLProvider/
I think I actually got it to work!! Here's what I did:
Installed the MySql Connector
Added to and referenced MySql.Data & MySql.Data.Entity in my project
Added and EntityFramework 5.0 to my project
Added both MySql.Data & MySql.Data.Entity to the GAC.
Then I was able to use SqlEntityConnection and get the types!
There's gotta be an easier way to do this though. I particular, adding stuff to the GAC should not be a part of all this process. I mean, am I asking to much for this to work pretty much "out of the box"?!
Unfortunately, I'm extremely unfamiliar with .Net yet, so I couldn't get the whole thing working with the App.config file. Based on my searches here, it looks like I'm not the only one having troubles with this. If anyone has any feedback/suggestions please help!

Subsonic 3.0.0.3 with MySQL 4template is not working

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.

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?