FruityFoundation/FruityFoundation.DataAccess.Sqlite/ServiceCollectionExtensions.cs

14 lines
389 B
C#
Raw Normal View History

2024-06-23 18:15:32 -04:00
using FruityFoundation.DataAccess.Abstractions;
using Microsoft.Extensions.DependencyInjection;
namespace FruityFoundation.DataAccess.Sqlite;
public static class ServiceCollectionExtensions
{
public static IServiceCollection AddSqliteConnectionFactory(this IServiceCollection services)
{
services.AddSingleton<IDbConnectionFactory, DbConnectionFactory>();
return services;
}
}