feat : create store and repository and interface
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
using Application.Aggregates.Stores;
|
||||
using Application.Aggregates.Users;
|
||||
using Domain.Aggregates.Stores.Data;
|
||||
using Domain.Aggregates.Users.Data;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Persistence;
|
||||
using Persistence.Repositories.Aggregates.Stores;
|
||||
using Persistence.Repositories.Aggregates.Users;
|
||||
using Server.Infrastructure.Extensions.ServiceCollections;
|
||||
|
||||
@@ -28,6 +31,9 @@ public class Program
|
||||
builder.Services.AddScoped<IUserRepository, UserRepository>();
|
||||
builder.Services.AddScoped<UsersApplication>();
|
||||
|
||||
builder.Services.AddScoped<IStoreRepository, StoreRepository>();
|
||||
builder.Services.AddScoped<StoresApplication>();
|
||||
|
||||
var app = builder.Build();
|
||||
|
||||
if (!app.Environment.IsDevelopment())
|
||||
|
||||
Reference in New Issue
Block a user