/// <summary> /// 映射 /// </summary> /// <param name="dataReader"></param> /// <returns></returns> public CPSS.Data.DataAcess.DataModels.MenuRight.MenuRightCheckDataModel Map(IDataReader dataReader) { var result = new CPSS.Data.DataAcess.DataModels.MenuRight.MenuRightCheckDataModel(); result.HaveRight = (bool)dataReader["HaveRight"]; return(result); }
/// <summary> /// 映射 /// </summary> /// <param name="dataReader"></param> /// <param name="entity"></param> public void Map(IDataReader dataReader, CPSS.Data.DataAcess.DataModels.MenuRight.MenuRightCheckDataModel entity) { entity.HaveRight = (bool)dataReader["HaveRight"]; }