Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dapper SQL Server code example is incomplete. #75

Closed
ScottWelker opened this issue Dec 22, 2023 · 1 comment
Closed

Dapper SQL Server code example is incomplete. #75

ScottWelker opened this issue Dec 22, 2023 · 1 comment
Assignees

Comments

@ScottWelker
Copy link

The 'Dapper SQL Server' code example won't work for the newbie (https://www.learndapper.com/database-providers#dapper-sql-server). Recommend that you (at least):

  1. Link to an informed discussion of the connectionString value.
  2. Reference the need to add using Dapper; in response to the error 'SqlConnection' does not contain a definition for 'Query'...
  3. Mention where/how Book (in var books = connection.Query<Book>...) comes from.
@JonathanMagnan JonathanMagnan self-assigned this Dec 27, 2023
@JonathanMagnan
Copy link
Member

Hello @ScottWelker ,

Thank you, the page has been improved with your suggestion.

We added the connection string, a comment // using Dapper;, and an online example for SQL Server.

Best Regards,

Jon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants