using iWareCommon.Common.Dao;
|
using iWareDataCore.Check.Entity;
|
using iWareDataCore.ORM;
|
using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
using System.Threading.Tasks;
|
|
namespace iWareDataCore.Check.Dao
|
{
|
public class PlanViewDao : CommonDao<PlanViewEntity, CheckPlanView>
|
{
|
private static object Lock = new object();
|
|
private PlanViewDao() { }
|
|
private static PlanViewDao Instance = null;
|
|
/// <summary>
|
/// 获取单例的方法
|
/// </summary>
|
/// <returns>角色服务的单例实体</returns>
|
public static PlanViewDao GetInstance()
|
{
|
|
if (Instance == null)
|
{
|
lock (Lock)
|
{
|
if (Instance == null)
|
{
|
Instance = new PlanViewDao();
|
}
|
}
|
}
|
return Instance;
|
}
|
|
|
protected override string GetColumnName(string name)
|
{
|
return PlanViewEntity.GetColumnName(name);
|
}
|
|
protected override string GetTableName()
|
{
|
return PlanViewEntity.GetTableName();
|
}
|
|
protected override PlanViewEntity ToEntity(CheckPlanView s)
|
{
|
return new PlanViewEntity(s);
|
}
|
|
protected override CheckPlanView ToOrm(PlanViewEntity t)
|
{
|
return t.ToOrm();
|
}
|
|
protected override List<string> GetColumnNames()
|
{
|
return PlanViewEntity.GetColumnMap().Keys.ToList();
|
}
|
|
}
|
}
|