RepositoryLifetime
v1.1Description
During services registration, this attribute is used to indicate the lifetime of the repository instance.
Using
Singleton
lifetime is not recommended for repositories.
Doing so will throw an exception during service registration.Properties
Name | Description |
---|---|
Lifetime | The lifetime of the repository instance. One of Scoped or Transient . |
Table of Contents