Table of Contents

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 ServiceLifetime

The service lifetime.

multipleRegistrations bool

true if multiple registrations of the service is allowed; false otherwise.

Properties

Lifetime

The service lifetime.

public ServiceLifetime Lifetime { get; }

Property Value

ServiceLifetime

MultipleRegistrations

true if multiple registrations of the service is allowed; false otherwise.

public bool MultipleRegistrations { get; }

Property Value

bool