system.argumentException: genericarguments [0], 'myclass', on 'system.nullable
Код: Выделить всё
1[T] MaxInteger[T](System.Collections.Generic.IEnumerableЭто часть кода, где я регистрирую карту.
Код: Выделить всё
public static IServiceCollection AddInfrastructure(this IServiceCollection services, IConfiguration configuration)
{
services.AddScoped(provider => provider.GetRequiredService());
services.AddDbContext(options =>
options.UseSqlServer(configuration.GetConnectionString("DataWareHouseConnection"), i => i.UseRowNumberForPaging())
.EnableSensitiveDataLogging());
services.AddScoped(provider => provider.GetRequiredService());
services.AddDbContext(options =>
options.UseSqlServer(configuration.GetConnectionString("DataWareHouseConnection"), i => i.UseRowNumberForPaging())
.EnableSensitiveDataLogging());
services.AddTransient();
services.AddTransient();
services.AddTransient();
return services;
}
Подробнее здесь: https://stackoverflow.com/questions/797 ... constraint
Мобильная версия