using iWareCommon.Common.Dao; using iWareDataCore.ORM; using iWareDataCore.RBAC.Entity; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace iWareDataCore.RBAC.Dao { public class MacAuthDao : CommonDao { private static object Lock = new object(); private MacAuthDao() { } private static MacAuthDao Instance = null; /// /// 获取单例的方法 /// /// 角色服务的单例实体 public static MacAuthDao GetInstance() { if (Instance == null) { lock (Lock) { if (Instance == null) { Instance = new MacAuthDao(); } } } return Instance; } protected override string GetColumnName(string name) { return MacAuthEntity.GetColumnName(name); } protected override string GetTableName() { return MacAuthEntity.GetTableName(); } protected override MacAuthEntity ToEntity(RBACMacAuth s) { return new MacAuthEntity(s); } protected override RBACMacAuth ToOrm(MacAuthEntity t) { return t.ToOrm(); } protected override List GetColumnNames() { return MacAuthEntity.GetColumnMap().Keys.ToList(); } } }