You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
347 B

2 years ago
  1. namespace EasyNet.Manager
  2. {
  3. public class ManagerFactory
  4. {
  5. public static DbManager GetManager()
  6. {
  7. var m = ManagerThread.Get();
  8. if (m == null)
  9. {
  10. m = DbManager.PriviteInstance();
  11. ManagerThread.Set(m);
  12. }
  13. return m;
  14. }
  15. }
  16. }