代码改变世界

批处理文件管理员启动cmd运行程序

2022-08-25 12:46 by Lecone.JY.HU, 127 阅读, 0 推荐, 收藏,
摘要:@ECHO OFF setlocal EnableDelayedExpansion title 添加服务配置 PUSHD %~DP0 & cd /d "%~dp0" %1 %2 mshta vbscript:createobject("shell.application").shellexecute 阅读全文

用自定义属性实现复合主键的思路

2022-08-20 12:50 by Lecone.JY.HU, 587 阅读, 0 推荐, 收藏,
摘要:使用efcore的时候,使用复合主键来表示实体,很多官网推荐 [Key("",Order)] 这种方式来实现,但是很大程度上会报错。 “the entity type '' has multiple properties with the [Key] attribute. Composite pri 阅读全文

vnext+sqlite3+sqlcipher

2022-08-16 15:00 by Lecone.JY.HU, 140 阅读, 0 推荐, 收藏,
摘要:1.在abp.io网站上创建项目并选择数据库为sqlite。 2.默认情况下,sqlite是不加密的。 3.打开appsettings.json "ConnectionStrings": { "Default": "Data Source=de.db;//You need to change to 阅读全文

使用vs开发工具EF Core+Mysql 从数据库生成实体类到项目

2022-05-19 16:10 by Lecone.JY.HU, 299 阅读, 0 推荐, 收藏,
摘要:1.点击“工具”->“NuGet包管理器”->“程序包管理器控制台”设置好"默认项目"(一般是实体对象项目) 安装以下插件 如果安装了忽略 Install-Package Pomelo.EntityFrameworkCore.MySql Install-Package Microsoft.Entit 阅读全文

docker 镜像上传到Harbor

2022-05-17 17:53 by Lecone.JY.HU, 1218 阅读, 0 推荐, 收藏,
摘要:需要把docker上传到harbor中。 1. 修改docker所在机器 /ect/docker/daemon.json,增加 "insecure-registries":["192.168.1.5"] ,"192.168.1.5" 为harbor的服务地址。 vim /etc/docker/dae 阅读全文

html背景图圆角图片设置方法

2021-05-17 11:12 by Lecone.JY.HU, 1345 阅读, 0 推荐, 收藏,
摘要:.content-top { width: 1250px; height: 250px; margin: 0 auto; border: 1px solid #171d32; background-color: rgba(255,255,255,.06); background-image:url( 阅读全文

abp.vnext vue 跨域设置

2021-02-18 13:45 by Lecone.JY.HU, 940 阅读, 0 推荐, 收藏,
摘要:在vue中js访问非同地址的webapi,会报Access to XMLHttpRequest at 'xxxx' from origin 'http://localhost:9527' has been blocked by CORS policy: No 'Access-Control-Allo 阅读全文

git码云操作

2020-09-16 09:28 by Lecone.JY.HU, 164 阅读, 0 推荐, 收藏,
摘要:1.分支推送过程中突然出现 将分支推送到远程存储库时遇到错误: Git failed with a fatal error.'master' does not appear to be a git repository Could not read from remote repository. 解 阅读全文

vs 2019 正则替换

2020-09-02 16:35 by Lecone.JY.HU, 673 阅读, 0 推荐, 收藏,
摘要:1.替换某些值 (_copyVExamRepository)(.)(Update)\((.*)\)(;) $1$2$3($4)$5\n_commonBaseAppServices.AddState($4); 2.替换vs中一行 替换一行中包含 #pragma ^[\t]*#pragma[^\n]*\ 阅读全文

vue开发技巧

2020-05-11 09:55 by Lecone.JY.HU, 186 阅读, 0 推荐, 收藏,
摘要:1.npm run xxx 指令 npm run xxx,并不是你想运行就运行的,只有在 package.json scripts 配置了,你才能 run 的。 2.v-model中使用动态生成参数。 需求:根据条件,动态生成一个textarea数组,并动态绑定数据。Entity是一个对象,d0,d 阅读全文
上一页 1 2 3 4 5 6 7 ··· 11 下一页
的风格风格