Copied to clipboard

Flag this post as spam?

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


  • JansyRani 21 posts 111 karma points
    Oct 03, 2016 @ 12:50
    JansyRani
    0

    How to Implement Entity Framwork codefirst in umbraco 7

    Hi Friends, I called stored procedure on controller with sqlconnection ,sqlcommand query in umbraco to retry data from database.For performance how to implement entity code first in umbraco.

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Oct 06, 2016 @ 12:12
    Alex Skrypnyk
    0

    Hi JansyRani,

    As I know this question is not Umbraco related.

    Just create Entity Framework codefirst project and add reference to Umbraco project.

    Umbraco has own ORM, called petaPoco but it's pretty simple.

    Read more about PetaPOCO - http://www.toptensoftware.com/petapoco/

    Thanks,

    Alex

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Oct 11, 2016 @ 09:24
    Alex Skrypnyk
    0

    Hi JansyRani,

    Did you solve the problem?

    Can you share solution with us?

    Thanks,

    Alex

  • JansyRani 21 posts 111 karma points
    Oct 12, 2016 @ 12:59
    JansyRani
    100

    Yes Alex. I got solution for this.I changed my code like below _database.Database.SqlQuery

    Thanks,

    Jansy

  • 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