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