dotnetcore / dotnetcore/Magicodes.IE

能不能针对实体里面再嵌套实体的做通用导出

Open
#184 2 comments 0 reactions 0 assignees View on GitHub
area-excel
Dominant language
C#
Stars
2.2k
Forks
495
PR merge metrics
No merged PRs in 30d

Description

例如这个UserEntity实体,里面嵌套有单位实体,如果我想连单位实体的 ACCOUNT 这个字段也导出,希望平台可以考虑支持。

///
/// 用户
///

public class UserEntity:
{
///
/// 账号
///
[ExporterHeaderAttribute(DisplayName = "账号")]
public string UserName { get; set; }

///
/// 单位信息
///

public hsys_companyinfo CompanyEntity { get; set; }

}

///
/// 总后台-》单位注册开通信息表
///

public partial class hsys_companyinfo
{

///
/// 单位主键id
///

public int COMID { get; set; }

///
/// 开户帐号
///
[ExporterHeaderAttribute(DisplayName = "开户帐号")]
public string ACCOUNT { get; set; }
}

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.