Browse Source

Update document

pull/5444/head
liangshiwei 5 years ago
parent
commit
e062b020ed
  1. 2
      docs/en/MongoDB.md
  2. 2
      docs/zh-Hans/MongoDB.md

2
docs/en/MongoDB.md

@ -279,7 +279,7 @@ public class BookService
Starting from version 4.0, MongoDB supports transactions. ABP added support for MongoDB transactions in version 3.2. If you upgrade the project to version 3.2. You need add [MongoDbSchemaMigrator](https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.MongoDB/MongoDb/MongoDbMyProjectNameDbSchemaMigrator.cs) to your `.MongoDB` project.
If you are using MongoDB server version less then v4.0, you need disabled the unit of work manually:
If you are using MongoDB server version less then v4.0, you need disabled the `transaction` of unit of work manually:
```csharp
Configure<AbpUnitOfWorkDefaultOptions>(options =>

2
docs/zh-Hans/MongoDB.md

@ -237,7 +237,7 @@ public class BookService
MongoDB在4.0版本开始支持事务, ABP在3.2版本加入了对MongoDb事务的支持. 如果你升级到3.2版本,需要将[MongoDbSchemaMigrator](https://github.com/abpframework/abp/blob/dev/templates/app/aspnet-core/src/MyCompanyName.MyProjectName.MongoDB/MongoDb/MongoDbMyProjectNameDbSchemaMigrator.cs)添加到你的 `.MongoDB` 项目中.
如果你在使用4.0版本之前的MongdoDB数据库,你需要手动禁用工作单元:
如果你在使用4.0版本之前的MongdoDB数据库,你需要手动禁用工作单元的事务:
```csharp
Configure<AbpUnitOfWorkDefaultOptions>(options =>

Loading…
Cancel
Save