Copied to clipboard

Flag this post as spam?

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


  • bh 408 posts 1395 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 408 posts 1395 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

Please Sign in or register to post replies

Write your reply to:

Draft