未验证 提交 22adf248 编写于 作者: W William Cole Boren 提交者: GitHub

Missing curly brace from code example (#1830)

* Update Readme.md

* Added additional braces

* Update Readme.md
上级 ff98f8db
...@@ -368,7 +368,7 @@ Ansi Strings and varchar ...@@ -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: 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 ```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. On SQL Server it is crucial to use the unicode when querying unicode and ANSI when querying non unicode.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册