Copied to clipboard

Flag this post as spam?

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


  • Daniel 4 posts 24 karma points
    Aug 16, 2011 @ 14:24
    Daniel
    0

    Connect to the database umbraco is installed on?

    Hello,

    I was wondering if I can make use of the same classes that umbraco uses to connect to the database?

    I want to create a new module just to learn how umbraco works, so now I want to fetch information from the database, but I do not wish to create my own database model layer, but instead I would like to use the same connection that umbraco used when installing the itself.

    Where can I find these files? What are they named? And how do I use them?

    Ive google alooot, but I cant find how to use the built in umbraco database connecton.

    Is there other plugins that must be used to accomplish this? Is it not recommended perhaps?

  • Daniel 4 posts 24 karma points
    Aug 16, 2011 @ 14:56
    Daniel
    0

    After more searching I finally stumbled over this treenode tutorial: http://www.netaddicts.be/articles/building-a-custom-section-to-manage-external-data.aspx where he is making use of the umbraco.DataLayerHelper. Imported into the project with "using umbraco.DataLayer".

Please Sign in or register to post replies

Write your reply to:

Draft