2020
10-08
10-08
c# 实现文件上传下载功能的实例代码
NuGet安装SqlSugar1.Model文件下新建DbContext类publicclassDbContext{publicDbContext(){Db=newSqlSugarClient(newConnectionConfig(){ConnectionString="server=localhost;uid=root;pwd=woshishui;database=test",DbType=DbType.MySql,InitKeyType=InitKeyType.Attribute,//从特性读取主键和自增列信息IsAutoCloseConnection=true,//开启自动释放模式...
继续阅读 >