A lightweight, extensible, open-source, and cross-platform version of the Entity Framework data access technology.
Hello,
Thank you for your help
I found my answer like this
var FUnit = new Func<IUnitOfWork>(target);
IUnitOfWork target()
{
return host.Services.GetService<IUnitOfWork>();
}
services.AddTransient<Func<IUnitOfWork>>((provider) => FUnit);