using iWareLog.ORM; using iWareLog.LOG.Entity; using iWareLog.LOG.Dao; using iWareCommon.Common.Service; namespace iWareLog.LOG.Service { public class InOutStorageDetailService : CommonService { private static object Lock = new object(); private InOutStorageDetailService() : base(InOutStorageDetailDao.GetInstance()) { } private static InOutStorageDetailService Instance = null; /// /// 获取单例的方法 /// /// log服务的单例实体 public static InOutStorageDetailService GetInstance() { if (Instance == null) { lock (Lock) { if (Instance == null) { Instance = new InOutStorageDetailService(); } } } return Instance; } } }