sam
d982342ab8
turns out efcore doesn't like it when we create a new options instance (which includes a new data source *and* a new logger factory) every single time we create a context. this commit extracts OnConfiguring into static methods which are called when the context is added to the service collection and when it's manually created for migrations and the importer. |
||
---|---|---|
.. | ||
AuthService.cs | ||
FediverseAuthService.cs | ||
FediverseAuthService.Mastodon.cs | ||
KeyCacheService.cs | ||
MailService.cs | ||
MemberRendererService.cs | ||
MetricsCollectionService.cs | ||
ObjectStorageService.cs | ||
PeriodicTasksService.cs | ||
RemoteAuthService.cs | ||
UserRendererService.cs |