refactor: replace Static service accessor with Factory implementation
- Replaced `Static` class with `Factory` class to unify service collection and provider handling. - Introduced `Factory.Shared` singleton for centralized access to `IServiceProvider`. - Updated generic repository access to use `Factory<TEntity>` instead of `Static<TEntity>`. - Simplified lazy initialization of the service provider. - Maintains compatibility with .NET Framework and .NET conditional compilation.
This commit is contained in:
@@ -0,0 +1,9 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<TargetFramework>net8.0</TargetFramework>
|
||||
<ImplicitUsings>enable</ImplicitUsings>
|
||||
<Nullable>enable</Nullable>
|
||||
</PropertyGroup>
|
||||
|
||||
</Project>
|
||||
Reference in New Issue
Block a user