//单件模式 public static OrderSql InitOS() { lock (_lock) { if (orderDo == null) { orderDo = new OrderSql(_issession); } return orderDo; } }
public void TestFixtureSetup() { //NHibernateProfiler.Initialize(); Sqldo = new DinnerDatado(dataHelper.getIsession()); orderDo = new DinnerData.OrderSql(dataHelper.getIsession()); }