0

How can we use multiple connections in petaPOCO with .net MVC application using factory design pattern?

1 Answers1

0

There's no problem using a factory pattern, but only use one PetaPoco DB per request.

You can use more than one per request, but you are creating more connections to the DB, having performance costs.

See this answer for more info how to create a DAL using petapoco

Community
  • 1
  • 1
Eduardo Molteni
  • 38,786
  • 23
  • 141
  • 206