Skip to content

导入带guid类型时报错 #44

Description

@nidapeng

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions