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