Browse Source

Fix options prefix in document.

pull/3420/head
maliming 7 years ago
parent
commit
ab83f4a37a
  1. 2
      docs/en/Authorization.md
  2. 2
      docs/en/Best-Practices/Entity-Framework-Core-Integration.md
  3. 2
      docs/en/Best-Practices/MongoDB-Integration.md
  4. 2
      docs/en/UI/AspNetCore/Bundling-Minification.md
  5. 4
      docs/zh-Hans/API/Dynamic-CSharp-API-Clients.md
  6. 2
      docs/zh-Hans/Authorization.md
  7. 2
      docs/zh-Hans/Best-Practices/MongoDB-Integration.md
  8. 2
      docs/zh-Hans/UI/AspNetCore/Bundling-Minification.md

2
docs/en/Authorization.md

@ -339,7 +339,7 @@ A permission value provider should return one of the following values from the `
- `PermissionGrantResult.Prohibited` is returned to prohibit the user for the permission. If any of the providers return `Prohibited`, the result will always be `Prohibited`. Doesn't matter what other providers return.
- `PermissionGrantResult.Undefined` is returned if this value provider could not decide about the permission value. Return this to let other providers check the permission.
Once a provider is defined, it should be added to the `PermissionOptions` as shown below:
Once a provider is defined, it should be added to the `AbpPermissionOptions` as shown below:
```csharp
Configure<AbpPermissionOptions>(options =>

2
docs/en/Best-Practices/Entity-Framework-Core-Integration.md

@ -107,7 +107,7 @@ public static class IdentityDbContextModelBuilderExtensions
````
* **Do** call `b.ConfigureByConvention();` for each entity mapping (as shown above).
* **Do** create a **configuration options** class by inheriting from the `ModelBuilderConfigurationOptions`. Example:
* **Do** create a **configuration options** class by inheriting from the `AbpModelBuilderConfigurationOptions`. Example:
````C#
public class IdentityModelBuilderConfigurationOptions : ModelBuilderConfigurationOptions

2
docs/en/Best-Practices/MongoDB-Integration.md

@ -90,7 +90,7 @@ public static class AbpIdentityMongoDbContextExtensions
}
```
- **Do** create a **configuration options** class by inheriting from the `MongoModelBuilderConfigurationOptions`. Example:
- **Do** create a **configuration options** class by inheriting from the `AbpMongoModelBuilderConfigurationOptions`. Example:
```c#
public class IdentityMongoModelBuilderConfigurationOptions

2
docs/en/UI/AspNetCore/Bundling-Minification.md

@ -246,7 +246,7 @@ public class MyPrismjsStyleExtension : BundleContributor
}
````
Then you can configure `BundleContributorOptions` to extend existing `PrismjsStyleBundleContributor`.
Then you can configure `AbpBundleContributorOptions` to extend existing `PrismjsStyleBundleContributor`.
````csharp
Configure<AbpBundleContributorOptions>(options =>

4
docs/zh-Hans/API/Dynamic-CSharp-API-Clients.md

@ -69,7 +69,7 @@ public class MyClientAppModule : AbpModule
}
````
查看下面的"RemoteServiceOptions"章节获取更多详细配置.
查看下面的"AbpRemoteServiceOptions"章节获取更多详细配置.
## 使用
@ -104,7 +104,7 @@ public class MyService : ITransientDependency
## 配置
### RemoteServiceOptions
### AbpRemoteServiceOptions
默认情况下`AbpRemoteServiceOptions`从`appsettings.json`获取.或者,你可以使用`Configure`方法来设置或重写它.如:

2
docs/zh-Hans/Authorization.md

@ -340,7 +340,7 @@ public class SystemAdminPermissionValueProvider : PermissionValueProvider
* `PermissionGrantResult.Prohibited` 禁止授权用户,任何一个授权值提供程序返回了 `Prohibited`, 那么其他的提供程序返回的值都不再重要.
* `PermissionGrantResult.Undefined` 代表当前无法确定是否授予或禁止权限, 返回`UnDefined`由其他权限值提供程序检查权限.
定义`Provider`后将其添加到 `PermissionOptions`,如下所示:
定义`Provider`后将其添加到 `AbpPermissionOptions`,如下所示:
````csharp
Configure<AbpPermissionOptions>(options =>

2
docs/zh-Hans/Best-Practices/MongoDB-Integration.md

@ -90,7 +90,7 @@ public static class AbpIdentityMongoDbContextExtensions
}
```
- **推荐** 通过继承 `MongoModelBuilderConfigurationOptions` 来创建 **configuration Options** 类. 示例:
- **推荐** 通过继承 `AbpMongoModelBuilderConfigurationOptions` 来创建 **configuration Options** 类. 示例:
```c#
public class IdentityMongoModelBuilderConfigurationOptions

2
docs/zh-Hans/UI/AspNetCore/Bundling-Minification.md

@ -248,7 +248,7 @@ public class MyPrismjsStyleExtension : BundleContributor
}
````
然后你可以配置 `BundleContributorOptions` 去扩展已存在的 `PrismjsStyleBundleContributor`.
然后你可以配置 `AbpBundleContributorOptions` 去扩展已存在的 `PrismjsStyleBundleContributor`.
````csharp
Configure<AbpBundleContributorOptions>(options =>

Loading…
Cancel
Save