HuanMengAdmin/admin-server/MiaoYu.Api.Admin/wwwroot/docs/assets/problem.html-9ef68938.js
2024-07-18 02:27:50 +08:00

3 lines
2.5 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{_ as a,o as n,c as s,a as t}from"./app-4f4af2d5.js";const e="/docs/hzy-admin/others/problem-1.jpg",o="/docs/hzy-admin/others/problem-2.jpg",c={},p=t(`<h1 id="问题" tabindex="-1"><a class="header-anchor" href="#问题" aria-hidden="true">#</a> 问题</h1><h2 id="导出时-或者-列表页面表头-发现有的字段是中文有的却是英文怎么回事" tabindex="-1"><a class="header-anchor" href="#导出时-或者-列表页面表头-发现有的字段是中文有的却是英文怎么回事" aria-hidden="true">#</a> 导出时 或者 列表页面表头 发现有的字段是中文有的却是英文怎么回事?</h2><div class="custom-container warning"><p class="custom-container-title">提示</p><p>需要进行如下配置,图中 OrganizationName 是组织名称但是系统中无法识别,这时候通过一下代码指向了他是表 Organization 的 Name 字段 这时候 就能确定 OrganizationName 的显示名称是什么。 如果想直接设置 title Mapping 更多操作查看源代码)</p></div><div class="language-csharp line-numbers-mode" data-ext="cs"><pre class="language-csharp"><code>result<span class="token punctuation">.</span><span class="token function">Column</span><span class="token punctuation">(</span>query<span class="token punctuation">,</span> w <span class="token operator">=&gt;</span> w<span class="token punctuation">.</span>OrganizationName<span class="token punctuation">)</span><span class="token punctuation">.</span><span class="token function">Mapping</span><span class="token punctuation">(</span><span class="token named-parameter punctuation">title</span><span class="token punctuation">:</span> <span class="token string">&quot;所属组织&quot;</span><span class="token punctuation">)</span><span class="token punctuation">;</span>
</code></pre><div class="line-numbers" aria-hidden="true"><div class="line-number"></div></div></div><p><img src="`+e+'" alt="导出"></p><h2 id="一个实体对应多个表查询怎么办" tabindex="-1"><a class="header-anchor" href="#一个实体对应多个表查询怎么办" aria-hidden="true">#</a> 一个实体对应多个表查询怎么办?</h2><div class="custom-container warning"><p class="custom-container-title">一般应用于分表的情况,一个实体对应多个表名称。</p><p>1、使用 .AsTable(tableName)</p><p>2、使用 .AsTable(oldName,tableName)</p></div><p><img src="'+o+'" alt="多个表查询怎么办"></p>',8),i=[p];function r(l,u){return n(),s("div",null,i)}const m=a(c,[["render",r],["__file","problem.html.vue"]]);export{m as default};