Browse Source

Merge pull request #22974 from abpframework/EngincanV-patch-1

Add missing namespace for mongodbcontext in the bookstore tutorial
pull/22980/head
oykuermann 1 year ago
committed by GitHub
parent
commit
de87fcfadd
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      docs/en/tutorials/book-store/part-01.md

4
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>();

Loading…
Cancel
Save