Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Commit

Permalink
Merge branch 'develop' of https://github.com/Elfocrash/Cosmonaut into…
Browse files Browse the repository at this point in the history
… develop
  • Loading branch information
Elfocrash committed Dec 15, 2018
2 parents 8e5ab40 + 437495c commit 92fdfc1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,12 @@ var users = await cosmoStore.Query().Where(x => x.HairColor == HairColor.Black).

```csharp
// plain sql query
var user = await cosmoStore.QueryMultipleAsync("select * from c w.Firstname = 'Smith'");
var user = await cosmoStore.Query("select * from c where c.Firstname = 'Smith'").ToListAsync();
or
var user = await cosmoStore.QueryMultipleAsync("select * from c where c.Firstname = 'Smith'");

// or parameterised sql query
var user = await cosmoStore.QueryMultipleAsync("select * from c w.Firstname = @name", new { name = "Smith" });
var user = await cosmoStore.QueryMultipleAsync("select * from c where c.Firstname = @name", new { name = "Smith" });
```

#### Collection sharing
Expand Down

0 comments on commit 92fdfc1

Please sign in to comment.