You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
4
+
5
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
6
+
7
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Copy file name to clipboardExpand all lines: README.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@ NHUnit is a simple but powerful Unit of Work and Repository pattern implementati
3
3
If at some point you decide to change the ORM, you just need to provide your own implementation for just two interfaces instead of rewriting the whole application.
4
4
NHUnit provides sync and async versions for each method.
5
5
6
-
##License
6
+
##License
7
7
MIT: Enjoy, share, contribute to the project.
8
8
9
9
@@ -64,6 +64,30 @@ var customer = await _dbContext.Customers
64
64
.ValueAsync(token); //this is where the query(s) get executed
65
65
```
66
66
67
+
An unproxied object will contain the foreign key ids (One to One and Many to One relations).
68
+
For example in the above query the Cart property will be instantiated and popuplated with the Id field.
69
+
70
+
71
+
## Multi Queries
72
+
Using `Deferred()` you can execute multiple queries in a single server trip.
73
+
Bellow is an example with 3 different queries that get executed in one server trip.
0 commit comments