Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

类里面有类,或者数组类 要怎么生成 #10

Open
vrockn opened this issue Nov 15, 2024 · 4 comments
Open

类里面有类,或者数组类 要怎么生成 #10

vrockn opened this issue Nov 15, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@vrockn
Copy link

vrockn commented Nov 15, 2024

` public class User
{
public long Id { get; set; }

    /// <summary>
    /// 大大地
    /// </summary>
    public string? Name { get; set; }

    public string? Abc { get; set; }

    public UserA UserA { get; set; }
}

[AutoDto(typeof(User), nameof(User.Id))]
public partial class UserDto
{
    public string? AEmail8 { get; set; }
}

public class UserA
{
    public string Abc { get; set; }

    public string Name { get; set; }
}



[AutoDto(typeof(UserA), nameof(UserA.Abc))]
public partial class UserADto
{

}`  UserDto 里面要有用UserADto里面的,而不是直接使用UserA
@vipwan
Copy link
Owner

vipwan commented Nov 15, 2024

#6 你好当前功能实现比较简单,没有考虑内部属性嵌套,要满足业务需要 排除对应属性并自行实现内部属性类型的转换

@vrockn
Copy link
Author

vrockn commented Nov 15, 2024

要是能自动实现这种就完美了。。

@vipwan
Copy link
Owner

vipwan commented Nov 15, 2024

要是能自动实现这种就完美了。。

你好,我会认真评估 ,考虑到属性嵌套的复杂情况 需要一些时间

@vipwan vipwan added the enhancement New feature or request label Nov 15, 2024
@vrockn
Copy link
Author

vrockn commented Nov 15, 2024

感谢作者,希望可以实现这一功能,这种确实很复杂,在实际中确实用的到,而且还涉及到属性嵌套忽略,层级过多下,想想都是非常复杂。👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants