Version problem

Shaifali jain 420 Reputation points
2023-10-06T09:29:53.26+00:00

@Karen Payne MVP , i was reading on your posts on https://github.com/karenpayneoregon/sql-basics/blob/master/NextResultsApp/Classes/DataOperations.cs

but got an error may be due to version problem . could you please suggest me change it . i am using a slightly older version of visual studio

User's image

and

User's image

thanks

Developer technologies | Windows Forms
Developer technologies | C#
Developer technologies | C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
0 comments No comments
{count} votes

Answer accepted by question author
  1. Karen Payne MVP 35,591 Reputation points Volunteer Moderator
    2023-10-06T11:17:07.69+00:00

    I'm using VS2022 version 17.7.2, think the features I'm using started with 17.4.x. And the original project uses net7.0 which allows the SQL method to use raw string literals.

    I updated code in the repository by adding

    With the above alternate code should work for you.

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.