FruityFoundation/FruityFoundation.DataAccess.Sqlite/ServiceCollectionExtensions.cs
2024-06-23 18:15:32 -04:00

14 lines
389 B
C#

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;
}
}