上一页 1 2 3 4 5 6 7 8 9 10 ··· 43 下一页
摘要: [FromRoute(Name="名字")],捕捉的值会被自动赋值给Action中同名的参数;如果名字不一致,可以用[FromRoute(Name="名字")] //前端传入export async function workOrderWithdrawApprove() { return reque 阅读全文
posted @ 2024-08-30 09:55 龙卷风吹毁停车场 阅读(97) 评论(0) 推荐(0)
摘要: IO Directory.Exists(path) //判断文件夹是否存在 Directory.CreateDirectory(path) // 根据路径创建出文件夹 File.Exists(path) //判断文件是否存在 Path.Combine(path, info.text) //路径拼接 阅读全文
posted @ 2024-08-23 14:38 龙卷风吹毁停车场 阅读(21) 评论(0) 推荐(0)
摘要: <Window x:Class="wpf.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xa 阅读全文
posted @ 2024-08-21 10:09 龙卷风吹毁停车场 阅读(110) 评论(0) 推荐(0)
摘要: Directroy.CreateDirectoy(System.IO) //方法 举例: 判断根目录是否存在wwwroot文件,如果不存在就在根目录创建一个wwwroot文件 var path = $"{AppContext.BaseDirectory}/wwwroot" if(!Directroy 阅读全文
posted @ 2024-08-14 09:30 龙卷风吹毁停车场 阅读(35) 评论(0) 推荐(0)
摘要: Directroy.Exists() // 用来判断指定文件夹是否存在,注意是文件夹,不是文件 File.Exists() //用来判断文件是否存在 举例: 判断根目录下是否存在wwwroot文件夹 AppContext.BaseDirectory //用于获取根目录 var path = $"{A 阅读全文
posted @ 2024-08-14 09:25 龙卷风吹毁停车场 阅读(107) 评论(0) 推荐(0)
摘要: AppContext.BaseDirectory //是webapi项目用于获取项目根目录 举例: 判断根目录是否存在wwwroot文件 var path = $"{AppContext.BaseDirectory}/wwwroot" if(!Directroy.Exists(path)) Cons 阅读全文
posted @ 2024-08-14 09:22 龙卷风吹毁停车场 阅读(56) 评论(0) 推荐(0)
摘要: 1: Linux 查看ip地址命令 ip addr2: 查看所有目录 ls /3: 在cmd中链接虚拟机: ssh root@你的虚拟机ip4 重启网卡: sudo service network restart一些基础命名:ls 查看当前目录cd 进入到某个目录ip addr 查看ip信息sudo 阅读全文
posted @ 2024-08-11 09:10 龙卷风吹毁停车场 阅读(10) 评论(0) 推荐(0)
摘要: 1.下载地址: https://pc.qq.com/detail/0/detail_21600.html安装秘钥: ZF3R0-FHED2-M80TY-8QYGC-NPKYF Z1ZPR-EDGQN-M1JE9-HYFGX-YPGEX 网盘地址分享VMware 通过百度网盘分享的文件:虚拟机链接:h 阅读全文
posted @ 2024-08-09 14:16 龙卷风吹毁停车场 阅读(135) 评论(0) 推荐(0)
摘要: 1.安装 Autofac 和 Autofac.Extensions.DependencyInjection2.举例如何使用,创建一个Interface类库和Service类库Interface是接口,Service是实现,注意需要引用这两个类库3,新建一个Config文件夹-> AutofacInt 阅读全文
posted @ 2024-08-08 10:48 龙卷风吹毁停车场 阅读(55) 评论(0) 推荐(0)
摘要: 1. 安装automapper2.创建一个Config文件夹->创建AutoMapperConfigs.cs文件3.配置AutoMapperConfigs.cs, 里面的实体类我就不展示了,太多了 namespace Fresh.Config { public class AutoMapperCon 阅读全文
posted @ 2024-08-08 10:17 龙卷风吹毁停车场 阅读(63) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 43 下一页