Exemplo n.º 1
0
        /// <summary>
        /// 主键配置
        /// </summary>
        static void PrimaryKeyConfig()
        {
            #region Sys

            QueryConfig.SetPrimaryKey <UserEntity>(u => u.SysNo);
            QueryConfig.SetPrimaryKey <RoleEntity>(u => u.SysNo);
            QueryConfig.SetPrimaryKey <AuthorityEntity>(u => u.Code);
            QueryConfig.SetPrimaryKey <AuthorityGroupEntity>(u => u.SysNo);
            QueryConfig.SetPrimaryKey <AuthorityOperationEntity>(u => u.SysNo);
            QueryConfig.SetPrimaryKey <AuthorityOperationGroupEntity>(u => u.SysNo);
            QueryConfig.SetPrimaryKey <UserAuthorizeEntity>(u => u.User, u => u.Authority);
            QueryConfig.SetPrimaryKey <RoleAuthorizeEntity>(u => u.Role, u => u.Authority);

            #endregion
        }