Struct ServiceCharacteristics
- Namespace
- Microsoft.EntityFrameworkCore.Infrastructure
- Assembly
- Microsoft.EntityFrameworkCore.dll
Characteristics of a given EF service.
public readonly struct ServiceCharacteristics
- Inherited Members
Remarks
See Implementation of database providers and extensions for more information and examples.
Constructors
ServiceCharacteristics(ServiceLifetime, bool)
Creates a new ServiceCharacteristics struct.
public ServiceCharacteristics(ServiceLifetime lifetime, bool multipleRegistrations = false)
Parameters
lifetime
ServiceLifetimeThe service lifetime.
multipleRegistrations
booltrue if multiple registrations of the service is allowed; false otherwise.
Properties
Lifetime
The service lifetime.
public ServiceLifetime Lifetime { get; }
Property Value
MultipleRegistrations
public bool MultipleRegistrations { get; }