示例#1
0
 public static PreOrderRepository GetInstance(PreOrderService service)
 {
     if (instance == null)
     {
         instance = new PreOrderRepository(service);
     }
     return(instance);
 }
示例#2
0
 public static PreOrderService GetInstance()
 {
     if (singleton == null)
     {
         singleton = new PreOrderService();
     }
     return(singleton);
 }
示例#3
0
 private PreOrderRepository(PreOrderService service)
 {
     this.service = service;
 }