using iWareCommon.Common.Dao; using iWareLog.LOG.Entity; using iWareLog.ORM; using System.Collections.Generic; using System.Linq; namespace iWareLog.LOG.Dao { public class SendMsgLogDao: CommonDao { private static object Lock = new object(); private SendMsgLogDao() { } private static SendMsgLogDao Instance = null; /// /// 获取单例的方法 /// /// LOG服务的单例实体 public static SendMsgLogDao GetInstance() { if (Instance == null) { lock (Lock) { if (Instance == null) { Instance = new SendMsgLogDao(); } } } return Instance; } protected override string GetColumnName(string name) { return SendMsgLogEntity.GetColumnName(name); } protected override string GetTableName() { return SendMsgLogEntity.GetTableName(); } protected override SendMsgLogEntity ToEntity(LOGSendMsgLog send) { return new SendMsgLogEntity(send); } protected override LOGSendMsgLog ToOrm(SendMsgLogEntity send) { return send.ToOrm(); } protected override List GetColumnNames() { return SendMsgLogEntity.GetColumnMap().Keys.ToList(); } } }