forked from mehdime/DbContextScope
-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
I have register the factory and locator,
services.AddScoped<DbContextScope.EfCore.Interfaces.IAmbientDbContextLocator>(serviceProvider => new DbContextScope.EfCore.Implementations.AmbientDbContextLocator());
and the locator register as :
services.AddScoped<IDbContextScopeFactory>(serviceProvider => new DbContextScopeFactory());
but when I create a scope instance use using ( var scope =_dbContextScopeFactory.Create()){}
I get a exception:
"Could not load type 'System.Runtime.Remoting.Messaging.CallContext' from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'."
what shoud i do ?
thank you .
marius-stanescu-archive360 and janverley
Metadata
Metadata
Assignees
Labels
No labels