schangxiang@126.com
3 天以前 570a85557b7013df6bf82c4c324793d96a1b0dfb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
using iWareCommon.Common.Dao;
using iWareLog.LOG.Entity;
using iWareLog.ORM;
using System.Collections.Generic;
using System.Linq;
 
namespace iWareLog.LOG.Dao
{
    public class InOutStorageDetailDao : CommonDao<InOutStorageDetailEntity, InOutStorageDetail>
    {
         private static object Lock = new object();
 
         private InOutStorageDetailDao() { }
 
         private static InOutStorageDetailDao Instance = null;
 
        /// <summary>
        /// 获取单例的方法
        /// </summary>
        /// <returns>log服务的单例实体</returns>
         public static InOutStorageDetailDao GetInstance()
        {
 
            if (Instance == null)
            {
                lock (Lock)
                {
                    if (Instance == null)
                    {
                        Instance = new InOutStorageDetailDao();
                    }
                }
            }
            return Instance;
        }
 
 
         protected override string GetColumnName(string name)
         {
             return InOutStorageDetailEntity.GetColumnName(name);
         }
 
         protected override string GetTableName()
         {
             return InOutStorageDetailEntity.GetTableName();
         }
 
         protected override InOutStorageDetailEntity ToEntity(InOutStorageDetail receive)
         {
             return new InOutStorageDetailEntity(receive);
         }
 
         protected override InOutStorageDetail ToOrm(InOutStorageDetailEntity receive)
         {
             return receive.ToOrm();
         }
 
         protected override List<string> GetColumnNames()
         {
             return InOutStorageDetailEntity.GetColumnMap().Keys.ToList();
         }
 
    }
}