Netcore导入excel时遇到的一些问题

1.时间格式转换

Excel.日期或者时间格式为:42093.6506944444 或者 0.650694444444444

 

公共类DateUtil 

包含用于处理Excel日期的方法。

 

参考:https://www.cnblogs.com/a14907/p/7403407.html

https://blog.csdn.net/qq_24470501/article/details/89537778

 

2.DataTable去重

参考:https://blog.csdn.net/qq_38173650/article/details/83053755

 

3.Linq -Any的使用,判断是否存在

Determines whether a sequence contains any elements.

确定序列是否包含任何元素。

参考:https://www.cnblogs.com/insus/p/5383102.html

 

4.文件上传

文件上传功能在实际开发中经常使用,在 .Net Core中,文件上传接收类型不再使用 HttpPostedFile 或 HttpFileCollection来接收,而是使用 IFormFile 或 IFormFileCollection来接收。

参考:http://www.manongjc.com/detail/11-elathiirqewtydp.html

原文地址:https://www.cnblogs.com/cyqdeshenluo/p/12801054.html