|
|
|
|
# Introduction
|
|
|
|
|
|
|
|
|
|
AWS S3对象存储案例
|
|
|
|
|
|
|
|
|
|
> .net NgGet先下载 `AWSSDK.S3` `3.7.5`版
|
|
|
|
|
|
|
|
|
|
*如下载实现,请替换`Run`-`AmazonS3Config conf`-`Host` 和 `BasicAWSCredentials credentials`中的`accessKey`-`secretKet`*
|
|
|
|
|
|
|
|
|
|
官方测试:[https://play.min.io](https://play.min.io)
|
|
|
|
|
```
|
|
|
|
|
Host: 'http://play.min.io',
|
|
|
|
|
port: 9000,
|
|
|
|
|
accessKey: 'Q3AM3UQ867SPQQA43P2F',
|
|
|
|
|
secretKey: 'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG'
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
实现逻辑:监控目录 - 获取文件路径 - 上传文件+解析tag
|
|
|
|
|
|
|
|
|
|
示例:`D:\ClientDir\line01\AOI\20211129\133055851SN001OK.png`
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
- 添加sqlite
|
|
|
|
|
- 添加包`EntityFramework` 6.4.4、`System.Data.SQLite` 1.0.115.5、`SQLite.CodeFirst` 1.7.0.34
|
|
|
|
|
- 修改`App.config`
|
|
|
|
|
- [Entity Framework 6 连接Sqlite数据库](https://blog.csdn.net/make1828/article/details/40071455)
|
|
|
|
|
- [Sqlite:Code First模式](https://blog.csdn.net/wucdsg/article/details/78895366)
|
|
|
|
|
|
|
|
|
|
- [https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/S3/TS3Config.html](https://docs.aws.amazon.com/sdkfornet/v3/apidocs/items/S3/TS3Config.html)
|
|
|
|
|
- [https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/dotnetv3/S3/UploadFileMPUHighLevelAPIExample/UploadFileMPUHighLevelAPIExample/UploadFileMPUHighLevelAPI.cs](https://github.com/awsdocs/aws-doc-sdk-examples/blob/main/dotnetv3/S3/UploadFileMPUHighLevelAPIExample/UploadFileMPUHighLevelAPIExample/UploadFileMPUHighLevelAPI.cs)
|
|
|
|
|
- [https://blog.csdn.net/tw_tangliang/article/details/118669099](https://blog.csdn.net/tw_tangliang/article/details/118669099)
|
|
|
|
|
- [https://ecloud.10086.cn/op-help-center/develop/202007021593677916792035060.pdf](https://ecloud.10086.cn/op-help-center/develop/202007021593677916792035060.pdf)
|