Exemple #1
0
 public static iKitchenDataContext GetContext()
 {
     if (dataContext == null)
     {
         dataContext = new iKitchenDataContext();
     }
     return(dataContext);
 }
Exemple #2
0
 /// <summary>
 /// 重置DataContext对象
 /// </summary>
 public static void Clear()
 {
     dataContext = null;
 }