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