Skip to content

Commit

Permalink
Missing curly brace from code example (#1830)
Browse files Browse the repository at this point in the history
* Update Readme.md

* Added additional braces

* Update Readme.md
  • Loading branch information
williycole authored Aug 24, 2023
1 parent ff98f8d commit 22adf24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ Ansi Strings and varchar
Dapper supports varchar params, if you are executing a where clause on a varchar column using a param be sure to pass it in this way:

```csharp
Query<Thing>("select * from Thing where Name = @Name", new {Name = new DbString { Value = "abcde", IsFixedLength = true, Length = 10, IsAnsi = true });
Query<Thing>("select * from Thing where Name = @Name", new {Name = new DbString { Value = "abcde", IsFixedLength = true, Length = 10, IsAnsi = true }});
```

On SQL Server it is crucial to use the unicode when querying unicode and ANSI when querying non unicode.
Expand Down

0 comments on commit 22adf24

Please sign in to comment.