示例#1
0
        //单件模式
        public static OrderSql InitOS()
        {
            lock (_lock)
                {
                    if (orderDo == null)
                    {
                        orderDo = new OrderSql(_issession);
                    }

                    return orderDo;
                }
        }
示例#2
0
 public void TestFixtureSetup()
 {
     //NHibernateProfiler.Initialize();
     Sqldo = new DinnerDatado(dataHelper.getIsession());
     orderDo = new DinnerData.OrderSql(dataHelper.getIsession());
 }