public static void ALLDependency(IServiceCollection services)
        {
            services.AddTransient <IUnitOfWork, UnitOfWork.UnitOfWork>();

            MongoDbDependency.ALLDependency(services);
            // services.AddTransient<IStudentRepository,StudentRepository>();
            // services.AddTransient<IDepartmentRepository,DepartmentRepository>();
        }
 public static void RegisterDllServices(IServiceCollection services)
 {
     services.AddTransient <IUnitOfWork, UnitOfWork>();
     MongoDbDependency.RegisterServices(services);
 }
Exemple #3
0
 public static void ALLDependency(IServiceCollection services)
 {
     services.AddTransient <IUnitOfWork, UnitOfWork.UnitOfWork>();
     MongoDbDependency.AllDependency(services);
 }