JonPSmith / EfCore.TestSupport

Tools for helping in unit testing applications that use Entity Framework Core
https://www.thereformedprogrammer.net/new-features-for-unit-testing-your-entity-framework-core-5-code/
Other
352 stars 53 forks source link

Ability to pass paramater to CreateOptions #24

Closed CrahunGit closed 4 years ago

CrahunGit commented 4 years ago

The problem is I need to add to the dbcontextoptionsbuilder the net topology options but currently I can't because all methods don't have the proper lambda like the constructor while using the adddbcontext option

JonPSmith commented 4 years ago

Not sure if that is worth adding. You can do that yourself. Its not that hard.

CrahunGit commented 4 years ago

Thank you, John. I’ve done it creating the connection by hand as Microsoft docs said. Not too much work as you said.

JonPSmith commented 4 years ago

BTW. If you want a unique named database then EfCore.TestSupport has a GetUniqueDatabaseConnectionString - see docs here.