- 博客(23)
- 资源 (1)
- 收藏
- 关注
翻译 反向工程基于Entity FrameworkCore
安装:Install-Package Microsoft.EntityFrameworkCore.Tools。更新:Update-Package Microsoft.EntityFrameworkCore.Tools。安装:dotnet tool install --global dotnet-ef。更新:dotnet tool update --global dotnet-ef。验证安装:Get-Help about_EntityFrameworkCore。创建一个项目作为基架项目,并在此项目中安装。
2023-03-24 17:26:30
160
原创 Swashbuckle.AspNetCore.SwaggerGen.SwaggerGeneratorException: Failed to generate Operation
ErrorMessage: Swashbuckle.AspNetCore.SwaggerGen.SwaggerGeneratorException: Failed to generate Operation for action - PMToolkit.API.Controllers.ReportController.GetOrderReportFilesList (PMToolkit.API). See inner exception\r\n ---\u003E Swashbuckle.AspNetCor
2022-07-11 09:37:28
1970
原创 Docker
安装VMware并配置 VMware安装CentOS7VMware安装CentOS7 CentOS7 安装后的配置 Docker 安装和配置
2022-05-14 11:55:38
142
原创 VMware 安装CentOS7
使用键盘上下键 选择Install CentOS7,然后点击Enter键进入安装 等它加载完毕出现一下选择语言界面,根据自己需要去选择对应的语言,这里我使用的English语言 选择分区,推荐使用自定义分区,分区分为以下几步,很简单。这里注意的是需要根据自己的实际存储空间去分区。由于我这里给定虚拟机的空间是100G所以每个分区都相对比较大。一般boot给800M,home稍微大点20G,var也要给大点10G,swap我给的4G这个是要看自己内存,如果内存小于4G,用内存的两倍,如果内存大于4G就给4.
2022-05-12 21:33:57
204
原创 EFCore 去使用 Mysql 搭建 Code First
需要的包:创建实体类 实现DbContext 注入DbContext到容器 添加MySql连接配置到配置文件 Code First 去做数据迁移 生成EF Core 迁移: dotnet ef migrations add InitialCreate 似乎出错了,对这个地方的连接配置有问题,我们修改它为 然后再看 ,它是成功了 接下来我们更新数据库: dotnet ef database up...
2022-05-08 13:04:05
782
原创 Docker 安装 mariadb server
官方仓库地址:mariadb 使用命令:docker pull mariadb 去下载这个镜像 创建msyql到本地的数据文件夹映射路径:mkdir -p /data/mariadb/db启动mariadb: docker run --name mariadb -p
2022-05-07 20:13:52
1113
转载 How to resolve Can‘t take screenshts without x11 server
shutter 只能在xwindow下工作,如果想使用必须从wayloand模式切换到xwindow模式下。 首先检查你当前登陆方式是wayland还是xwindow,使用命令echo $XDG_SESSION_TYPE如何切换wayland和xwindow 注销当前登陆 在登陆界面选择以那种图形服务器进入,选择Ubuntu默认以xwindow运行,如选择Ubuntu on wayland则以它进入。 ...
2022-05-04 22:14:40
696
翻译 Docker 简介和安装在Windows下
Docker 简介 Docker是一种运行于Linux和Windows上的软件,用于创建、管理和编排容器。 Docker运行时与编排引擎 Docker安装 桌面安装
2022-03-23 00:38:53
253
原创 C# 数字转Excel列字母位置
// 根据ASCII码:A-Z 在ASCII中十进制对应的数字是:65-90 // a-z 在ASCII中十进制对应的数字是:97-122 // 所以根据这个ASCII去进行数字转字符 // 如果按照excel的cell排列顺序它是从1-n递增排列public string ConvertToColumn(int index) { if (index <= 0)...
2021-12-05 09:46:25
540
原创 Github switch remote url
Open the gitbash or terminal for windows Check the correctly remote url of local to use command as below: Remove the correctly reomte url from local as below: Switch the other remote url to local as below:
2021-10-13 15:50:12
143
原创 How to generate the ssh key and check the existing ssh keys
Install the Git software:Git - Downloads Open the Git Bash: Enterls -al ~/.ssh to check if existing ssh directory, as below: If you have an existing public and private key pair, Please copy the public key content to github and setup it...
2021-09-30 15:25:42
103
转载 AngularJS多模块开发
angularJS中的多模块开发是指多个module模块开发,步骤为: 1. 确定主模块 var app=angular.module('myApp',[]); 2. 其他的子模块添加到主模块后面的中括号中 var app=angular.module('myApp',['myApp1','myApp2']); 3. 创建子模块 var app1=angular...
2018-09-11 14:53:47
888
转载 c#获取某月有多少天的方法
//第一种 public int GetDay1() { DateTime dt = DateTime.Now; int dt = DateTime.DaysInMonth(dt.Year, dt.Month); return day; } /...
2018-07-17 09:50:21
2561
原创 C# 判断数据是否存在重复项
bool exists = enquiryOrderItems.GroupBy(m => new { m.CargoID, m.CustomerLotNo, m.LotCreateDate, m.BeginDate, m...
2018-06-05 15:13:41
5609
原创 C# 判断两个时间段是否有重合部分
/// <summary> /// 时间交叉校验 /// </summary> /// <param name="a"></param> /// <param name="b"></param> /// <
2018-06-05 15:09:51
7126
原创 C# 自定义简单日志工具类
/// <summary> /// 写日志 /// </summary> public static class WriteLog { public static void WriteLogs(string filename, string type, string content) { //1.0 ...
2018-04-11 23:40:23
537
转载 javascript时间戳和日期字符串相互转换
// 获取当前时间戳(以s为单位)var timestamp = Date.parse(new Date());timestamp = timestamp / 1000;//当前时间戳为:1403149534console.log("当前时间戳为:" + timestamp);// 获取某个时间格式的时间戳var stringTime = "2014-07-10 1
2016-09-08 16:29:57
224
原创 SQLServer查询操作
select distinct Name from dbo.Student;--distinct去掉重复的名字select * from dbo.Student where Name LIKE '王[0-9]%';select * from dbo.Student where Name Like '%[%]%';select * from dbo.Student where N
2016-06-13 21:39:48
444
转载 jQuery选择器总结
jQuery 的选择器可谓之强大无比,这里简单地总结一下常用的元素查找方法 $("#myELement") 选择id值等于myElement的元素,id值不能重复在文档中只能有一个id值是myElement所以得到的是唯一的元素 $("div") 选择所有的div标签元素,返回div元素数组 $(".myClass")
2016-03-18 13:00:08
196
转载 Javascript 检查字符串是否是数字的几种方法
//判断是否是正整数function IsNum(s){ if(s!=null){ var r,re; re = /\d*/i; //\d表示数字,*表示匹配多个数字 r = s.match(re); return (r==s)?true:false; } return false;
2016-03-18 12:47:30
346
转载 VS2015快捷键大全
Ctrl+E,D ----格式化全部代码Ctrl+E,F ----格式化选中的代码CTRL + SHIFT + B生成解决方案CTRL + F7 生成编译CTRL + O 打开文件CTRL + SHIFT + O打开项目CTRL + SHIFT + C显示类视图窗口F4 显示属性窗口SHIFT + F4显示项目属性窗口CTRL + SHIFT + E显示资源视图
2016-03-08 17:22:00
2291
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人