Copied to clipboard

Flag this post as spam?

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


  • bh 291 posts 976 karma points
    Jun 02, 2020 @ 20:08
    bh
    0

    System.Data.Objects.SqlClient on UmbracoViewPage

    I'm trying to access the SqlFunctions class under System.Data.Objects.SqlClient on my UmbracoViewPage

    I've added the System.Data.Entity reference to my project.

    @using System.Data.Objects.SqlClient works on a public static class.

    But when I try to add @using System.Data.Objects.SqlClient to my UmbracoViewPage it tells me "Objects" doesn't exist in "System.Data"

    Is there a way to make this work?

  • bh 291 posts 976 karma points
    Jun 02, 2020 @ 20:26
    bh
    0

    I just moved the code into a function in my public static class and used that on my UmbracoViewPage

  • 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