Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Jules 205 posts 448 karma points
    Feb 05, 2010 @ 12:18
    Jules
    0

    DB Access and Strongly Typed datasets in Umbraco

    This is my first crack at Umbraco and the site I am doing will require a lot of sql server database access and I have gotten rather used to the strongly typed datasets that you can generate in web application projects in Visual studio

    Plugging away at this I finally cracked it but I would like to know if there are others out there who are doing things in the same way.

    Basically I am building an asp.net control which may have a gridview or a repeater in it and using strongly typed datasets and table adapters to access the db.

    When building the project, I copy across all the ascx and associated files to the umbraco web site along with the xsd and xss files to the app_code folder (all using Post build events in VS2008).  This works a treat!

    I guess I want some reassurance that I am not blaspheming in any way and that this is a valid way to work with databases in Umbraco.

    Very interested to hear comments

    Thanks

    Julian

  • Petr Snobelt 923 posts 1534 karma points
    Feb 05, 2010 @ 13:05
    Petr Snobelt
    1

    Current version of umbraco support multiple databases - mssql, vistadb and mysql using datalayer. You should use it too if you can create package which work on these databases. If you want support only mssql, you can generate typed datasets and use it if you wish.

    IMHO you should use nhibernate, entityframework, linq2sql or subsonic, typed datasets are obsolete.

     

    Petr

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies