public override void ConfigureServices(ServiceConfigurationContext context)
        {
            AbpTenantManagementBsonClassMap.Configure();

            context.Services.AddMongoDbContext <TenantManagementMongoDbContext>(options =>
            {
                options.AddDefaultRepositories <ITenantManagementMongoDbContext>();

                options.AddRepository <Tenant, MongoTenantRepository>();
            });
        }
        public override void ConfigureServices(IServiceCollection services)
        {
            AbpTenantManagementBsonClassMap.Configure();

            services.AddMongoDbContext <TenantManagementMongoDbContext>(options =>
            {
                options.AddDefaultRepositories <ITenantManagementMongoDbContext>();

                options.AddRepository <Tenant, MongoTenantRepository>();
            });

            services.AddAssemblyOf <AbpTenantManagementMongoDbModule>();
        }