Helper.cs 387 B

1234567891011121314151617181920
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace OUP
  7. {
  8. public class Helper
  9. {
  10. private static Entities _context;
  11. public static Entities GetContext()
  12. {
  13. if (_context == null)
  14. _context = new Entities();
  15. return _context;
  16. }
  17. }
  18. }