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

导入带guid类型时报错 #44

Closed
nidapeng opened this issue Mar 6, 2020 · 0 comments
Closed

导入带guid类型时报错 #44

nidapeng opened this issue Mar 6, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@nidapeng
Copy link

nidapeng commented Mar 6, 2020

public class WeiChat_BrokerClient3 : WeiChat_WeChatWithNoKeyBase
{

    [Key]
    [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
    public int Id { get; set; }

    /// <summary>
    ///   用户id
    /// </summary>
    [Display(Name = "用户ID")]
    public Guid userId { get; set; }

 。。。。。
}

}
执行的代码是
//导入数据

        var filePath = Path.Combine(Server.MapPath("~/upload"), "1.xlsx");

        var import = await Importer.Import<WeiChat_BrokerClient3>(filePath);
        import.ShouldNotBeNull();

1

@xin-lai xin-lai self-assigned this Mar 6, 2020
@xin-lai xin-lai added the bug Something isn't working label Mar 6, 2020
xin-lai referenced this issue Mar 6, 2020
@xin-lai xin-lai closed this as completed Mar 6, 2020
xin-lai referenced this issue Mar 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants