Results 1 to 7 of 7

Thread: Monodevelop + Database question

  1. #1
    Join Date
    Dec 2005
    Location
    Seoul, South Korea
    Beans
    46
    Distro
    Xubuntu 8.04 Hardy Heron

    Monodevelop + Database question

    Hey all, decided to start writing an application which i see a need for for many people I know.

    Anyways, I don't want to do it on windows even though the majority of their machines are going to be windows. I've decided the best idea would be to do it in C# on Monodevelop to run on Linux and Windows.

    Actually this is more or a learning exercise for me than anything.

    Ok first obstacle. This is going to involve a database so whats the standard way database to use with monodevelop when I want to run it cross-platform on mono and .Net ?

  2. #2
    Join Date
    Mar 2007
    Location
    Turkey
    Beans
    1,574

    Re: Monodevelop + Database question

    With mono, even if you compile the source code to a .exe, you will still need the end-users to have .NET framework installed. And since it is a rather love possibility they have it already installed on their comp (it is not like the JRE) you will have to include it with your program, which will make the size go upto like 30(?) MB's. And then they have to first install that framework, finally only then can they run your program. This is one of the main reasons I left C# (I had a well-paid job where I used C# 2.0) and went the Python + C++ way under Linux.

    If you still want to develop C#, you could use MySQL queries in your program which can be run on both Linux and Windows. I have no real exp with MySQL though, therefore I can't tell how you can do that, but a quick google search for "MySQL query in C#" would reveal enough sources.

    Good luck.

  3. #3
    Join Date
    Oct 2004
    Location
    Florida
    Beans
    206
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: Monodevelop + Database question

    I seem to recall that you'd like to be looking into something called ADO.NET. I believe thats the standard .NET way of interfacing with databases.

    As far as the rest goes. Depending on what .NET standard you're shooting for *most* machines should have .NET 2.x by now if its in a work environment. Home environment would be hit or miss.
    Student / Developer | Registered Linux User: 356244 | Registered FSF Member: 5697
    Website: http://zacbrown.org | Advogato me!
    "My cat" is not a float. Every string should learn to swim.

  4. #4
    Join Date
    Mar 2007
    Location
    Turkey
    Beans
    1,574

    Re: Monodevelop + Database question

    Quote Originally Posted by rufius View Post
    I seem to recall that you'd like to be looking into something called ADO.NET. I believe thats the standard .NET way of interfacing with databases.
    ADO.NET is the nickname for the System.Data namespace used by a .NET program to interact with databases. Here is a tutorial I have read which will help you get most of your job done:
    http://www.csharp-station.com/Tutori.../Lesson01.aspx

    Be aware though, it focuses mainly on SQL Server 2005.

  5. #5
    Join Date
    Jan 2008
    Beans
    3
    Distro
    Edubuntu 6.10 Edgy

    Re: Monodevelop + Database question

    Quote Originally Posted by clash View Post
    Hey all, decided to start writing an application which i see a need for for many people I know.

    Anyways, I don't want to do it on windows even though the majority of their machines are going to be windows. I've decided the best idea would be to do it in C# on Monodevelop to run on Linux and Windows.

    Actually this is more or a learning exercise for me than anything.

    Ok first obstacle. This is going to involve a database so whats the standard way database to use with monodevelop when I want to run it cross-platform on mono and .Net ?
    Clash,

    I highly recommend MonoDevelop 2.0 and MySql 5.1 with the MySql/Connector .NET 5.1 (at this time, I haven't had luck using the later versions of MySql/Connector .NET in Linux. I'm not sure, but I think it might have something to do with dependencies on newer Dot NET Framework Versions.)

    I'm having great luck with these tools, and am of the opinion that these tools will continue to be developed and advanced--I think there is a wonderful future in this direction.

    Good Luck!

    Ross Ylitalo

  6. #6
    Join Date
    Oct 2006
    Location
    /dev/null
    Beans
    1,574
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Monodevelop + Database question

    Understanding is a three-edged sword: Your side, their side, and the truth

  7. #7
    Join Date
    May 2009
    Beans
    791
    Distro
    Kubuntu 9.04 Jaunty Jackalope

    Re: Monodevelop + Database question

    lol

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •