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 PlaceTypeViewDao : CommonDao { private static object Lock = new object(); private PlaceTypeViewDao() { } private static PlaceTypeViewDao Instance = null; /// /// 获取单例的方法 /// /// 角色服务的单例实体 public static PlaceTypeViewDao GetInstance() { if (Instance == null) { lock (Lock) { if (Instance == null) { Instance = new PlaceTypeViewDao(); } } } return Instance; } protected override string GetColumnName(string name) { return PlaceTypeViewEntity.GetColumnName(name); } protected override string GetTableName() { return PlaceTypeViewEntity.GetTableName(); } protected override PlaceTypeViewEntity ToEntity(BASEPlaceTypeView s) { return new PlaceTypeViewEntity(s); } protected override BASEPlaceTypeView ToOrm(PlaceTypeViewEntity t) { return t.ToOrm(); } protected override List GetColumnNames() { return PlaceTypeViewEntity.GetColumnMap().Keys.ToList(); } } }