How to inject the DBContext of Entity Framework Core to AutoFac

35 Views Asked by At

We have a requirement to use the Db2 database using .NET Core, for which how to inject the Db2 DBContext of Entity Framework Core to AutoFac?

Is the repository pattern good? Or do I need to develop a separate class and then inject that into AutoFac?

0

There are 0 best solutions below