Copied to clipboard

Flag this post as spam?

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


  • nick 4 posts 24 karma points
    Jan 06, 2012 @ 16:04
    nick
    0

    DB

    I can use Linq for work with database or entity framework?

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Jan 09, 2012 @ 12:28
    Tim
    0

    The Umbraco front end doesn't use the DB, it uses an XML file. There is an older Linq2Umbraco extension that allows you to query certain DocumentTypes with Linq, although I'm not sure how well supported it is now. If you're using the most up to date versions of Umbraco then you can use the Razor syntax which supports Linq syntax.

    I wouldn't recommend using Linq or EF to access the Umbraco database directly, as you may run into issues. You'd be better off using the API instead. If you're talking about for custom tables that you want to add to Umbraco to store your own data, then that should be OK though.

    Hope that helps!

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    Jan 09, 2012 @ 12:32
    Jeroen Breuer
    0

    Have a look at this topic if you want to query custom tables: http://our.umbraco.org/forum/developers/extending-umbraco/27331-ORMT-SQL.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft