Add mongo

This commit is contained in:
2021-11-11 21:44:15 +01:00
parent 08623e9975
commit 2e737359c7
25 changed files with 356 additions and 29 deletions

View File

@@ -0,0 +1,16 @@
global using System;
global using System.Threading.Tasks;
using Microsoft.Extensions.DependencyInjection;
using Todo.Core.Interfaces.Persistence;
using Todo.Persistence.Mongo.Repositories;
namespace Todo.Persistence
{
public static class DependencyInjection
{
public static IServiceCollection AddPersistence(this IServiceCollection services) =>
services
.AddScoped<IUserRepository, UserRepository>()
.AddScoped<ITodoRepository, TodoRepository>();
}
}