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 { private static object Lock = new object(); private PlaceVoidLabelDao() { } private static PlaceVoidLabelDao Instance = null; /// /// 获取单例的方法 /// /// 库位锁定的单例实体 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 GetColumnNames() { return PlaceVoidLabelEntity.GetColumnMap().Keys.ToList(); } } }