Home

Connection from .linq script (Linqpad 6)

I have a db context that requires some external dependencies and it does not have ctor witch accepts string or DbContextOptions, I've created db context derived from it with some mocks in .linq script. Is it possible to add this context to list of connections? I've tried adding db context found in LINQPadQuery.dll but I'm getting errors that it cant find some other .dlls (I copied them to the same folder using 'Export all DLLs to Folder'): specifically Microsoft.Extensions.DependencyInjection Version 5.0.0.1

Comments

Sign In or Register to comment.