You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
1.6 KiB

3 years ago
# Introduction
AWS S3对象存储案例
3 years ago
> .net NgGet先下载 `AWSSDK.S3` `3.7.5`版
3 years ago
3 years ago
*如下载实现,请替换`Run`-`AmazonS3Config conf`-`Host` 和 `BasicAWSCredentials credentials`中的`accessKey`-`secretKet`*
官方测试:[https://play.min.io](https://play.min.io)
3 years ago
```
3 years ago
Host: 'http://play.min.io',
3 years ago
port: 9000,
accessKey: 'Q3AM3UQ867SPQQA43P2F',
secretKey: 'zuf+tfteSlswRu7BJ86wekitnifILbZam1KYY3TG'
```
3 years ago
实现逻辑:监控目录 - 获取文件路径 - 上传文件+解析tag
3 years ago
示例:`D:\ClientDir\line01\AOI\20211129\133055851SN001OK.png`
3 years ago
3 years ago
---
- 添加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)
- [SqliteCode First模式](https://blog.csdn.net/wucdsg/article/details/78895366)
3 years ago
3 years ago
- [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)