Browse Source
Merge pull request #22981 from abpframework/auto-merge/rel-9-2/3758
Merge branch dev with rel-9.2
pull/22983/head
maliming
8 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
1 deletions
-
docs/en/tutorials/book-store/part-01.md
|
|
|
@ -114,9 +114,11 @@ public class BookStoreDbContext : AbpDbContext<BookStoreDbContext> |
|
|
|
|
|
|
|
{{if DB == "Mongo"}} |
|
|
|
|
|
|
|
Add a `IMongoCollection<Book> Books` property to the `BookStoreMongoDbContext` inside the `Acme.BookStore.MongoDB` project: |
|
|
|
Add an `IMongoCollection<Book> Books` property to the `BookStoreMongoDbContext` inside the `Acme.BookStore.MongoDB` project: |
|
|
|
|
|
|
|
```csharp |
|
|
|
using Acme.BookStore.Books; |
|
|
|
|
|
|
|
public class BookStoreMongoDbContext : AbpMongoDbContext |
|
|
|
{ |
|
|
|
public IMongoCollection<Book> Books => Collection<Book>(); |
|
|
|
|