mirror of
https://github.com/hmaxnl/DotBased.git
synced 2025-02-23 07:05:01 +01:00
13 lines
391 B
C#
13 lines
391 B
C#
|
using Microsoft.EntityFrameworkCore;
|
||
|
using Microsoft.Extensions.DependencyInjection;
|
||
|
|
||
|
namespace DotBased.AspNet.Authority.EFCore;
|
||
|
|
||
|
public static class DI
|
||
|
{
|
||
|
public static IServiceCollection AddAuthorityContext(this IServiceCollection services, Action<DbContextOptionsBuilder> options)
|
||
|
{
|
||
|
services.AddDbContextFactory<AuthorityContext>(options);
|
||
|
return services;
|
||
|
}
|
||
|
}
|