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