Skip to content

Commit

Permalink
Merge pull request #272 from kazuhito-m/fix-document-sample-program
Browse files Browse the repository at this point in the history
Correct sample code of document.
  • Loading branch information
AdrianJSClark committed Sep 13, 2017
2 parents f57f069 + 77790a0 commit 1f18764
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/usage.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public class Script0005ComplexUpdate : IScript
{
public string ProvideScript(Func<IDbCommand> commandFactory)
{
var cmd = sqlConnectionString.CreateCommand();
var cmd = commandFactory();
cmd.CommandText = "Select * from SomeTable";
var scriptBuilder = new StringBuilder();

Expand All @@ -80,7 +80,7 @@ public class Script0005ComplexUpdate : IScript
}
}

return scriptBuilder;
return scriptBuilder.ToString();
}
}
```
Expand Down

0 comments on commit 1f18764

Please sign in to comment.