Skip to content
Branch: master
Clone or download
Latest commit 69bc9cb May 5, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Util6 ORM Update PlugNT_CMS.mdb May 3, 2019
README.md Update README.md May 5, 2019

README.md

Util6 ORM 创建于2014年,于2019年正式开源,是在Util.Database数据库框架依赖的基础上实现的一个轻量级强类型ORM框架。

官方网站:https://www.util6.com
测试示例:https://www.cnblogs.com/dreamman/p/10805041.html


Util6 ORM 特点

  • 上手容易,语法简单,性能优,体积小

  • 核心方法:查询(Query) 、新增(Insert)、更新(Update)、删除(Delete)

  • 支持多数据库Sql Server,MySql,Access,等数据库

  • 支持数据库读写分离配置


public FindMaintainRoleOutput FindMaintainRole(int roleID)
{
    var output = new FindMaintainRoleOutput();
    output.Role = new MisRoleDataAccess().Query(m => m.ID == roleID).ToModel();
    if (output.Role != null)
    {
        var role = output.Role;
        output.Project = new MisProjectService().FindEntity(role.ProjectID);
        output.UserRoleList = new MisUserRoleDataAccess().Query(m => m.RoleID == role.ID).ToList();
        output.RoleRightsList = new MisRoleRightsDataAccess().Query(m => m.RoleID == role.ID).ToList();
        output.RoleExtendList = new MisRoleExtendDataAccess().Query(m => m.RoleID == role.ID).ToList();
        var rightsIDList = output.RoleRightsList.Select(m => m.RightsID).ToList();
        if (rightsIDList.Count > 0)
        {
            output.RightsList = new MisRightsDataAccess().Query(m=> rightsIDList.Contains(m.ID)).ToList();
            output.RightsPageList = new MisRightsPageDataAccess().Query(m => rightsIDList.Contains(m.RightsID)).ToList();
        }
    }
    return output;
}


You can’t perform that action at this time.