Browse Source
Rename `isReadOnly` to `isReadOnlyRepository`.
pull/17421/head
maliming
3 years ago
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
1 changed files with
2 additions and
2 deletions
-
framework/src/Volo.Abp.Ddd.Domain/Microsoft/Extensions/DependencyInjection/ServiceCollectionRepositoryExtensions.cs
|
|
|
@ -82,11 +82,11 @@ public static class ServiceCollectionRepositoryExtensions |
|
|
|
Type serviceType, |
|
|
|
Type implementationType, |
|
|
|
bool replaceExisting, |
|
|
|
bool isReadOnly = false) |
|
|
|
bool isReadOnlyRepository = false) |
|
|
|
{ |
|
|
|
var descriptor = ServiceDescriptor.Transient(serviceType, implementationType); |
|
|
|
|
|
|
|
if (isReadOnly) |
|
|
|
if (isReadOnlyRepository) |
|
|
|
{ |
|
|
|
services.AddTransient(implementationType); |
|
|
|
descriptor = ServiceDescriptor.Transient(serviceType, provider => |
|
|
|
|