ModelPublic.cs 418 B

123456789101112131415161718192021
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6. namespace Rkis29.Model
  7. {
  8. public class ModelPublic
  9. {
  10. private static Model1 context;
  11. public static Model1 GetContext()
  12. {
  13. if (context == null)
  14. {
  15. context = new Model1();
  16. }
  17. return context;
  18. }
  19. }
  20. }