Add mongo
This commit is contained in:
@@ -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>();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user