上一页 1 2 3 4 5 6 7 8 9 10 ··· 36 下一页
摘要: 使用 : 注意: 用guid做主键时,不能把主键设置为聚集索引,因为聚集索引是按照顺序保存主键的,因此用guid作为主键性能差 Guid g = Guid.NewGuid(); Console.WritLine(g.ToString()); 阅读全文
posted @ 2024-05-30 13:23 龙卷风吹毁停车场 阅读(2) 评论(0) 推荐(0) 编辑
摘要: 安装两个NuGet: Microsoft.EntityFrameworkCore.SqlServer Microsoft.EntityFrameworkCore.Tools 1.创建一个Book.cs文件 using System; using System.Collections.Generic; 阅读全文
posted @ 2024-05-30 10:57 龙卷风吹毁停车场 阅读(8) 评论(0) 推荐(0) 编辑
摘要: using System; namespace ConsoleApp1 { public class Program { /* 静态方法 (static): 特点: 1.生命周期,一旦创建--应用结束才会销毁 2.可全局使用 3.效率高 用处: 用户登陆信息,系统配置信息,系统设置,SqlHelpe 阅读全文
posted @ 2024-05-25 11:41 龙卷风吹毁停车场 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 创建新项目,选择创建 webapi项目 1. 创建完成后点击 Controllers 文件夹,单机右键,选择添加控制器 2.点击确定3.选择api控制器 4.点击确定 5. 更具自己需求,修改 [Route("api/[controller]")], a56爆大奖在线娱乐这点改为 [Route("api/[contr 阅读全文
posted @ 2024-05-24 14:55 龙卷风吹毁停车场 阅读(16) 评论(0) 推荐(0) 编辑
摘要: a56爆大奖在线娱乐在appsettings.json中配置了链接数据库的信息,红色标记区域 { "ConnectionStrings": { "connStr": "server=.;database=PerformanceAppraisalDb;uid=sa;pwd=123456" }, "Logging": { 阅读全文
posted @ 2024-05-24 13:56 龙卷风吹毁停车场 阅读(15) 评论(0) 推荐(0) 编辑
摘要: 1. 再Program.cs 文件中添加 using WebApplication1.Webapi.Utility.ApiVersions; var builder = WebApplication.CreateBuilder(args); // Add services to the contai 阅读全文
posted @ 2024-05-24 11:54 龙卷风吹毁停车场 阅读(11) 评论(0) 推荐(0) 编辑
摘要: 1.获取datagridview单元格修改的内容 //单元格的值发生改变时触发事件 private void dataGridView1_CellValueChanged(object sender, DataGridViewCellEventArgs e) { //获取当前行绑定的内容 Appra 阅读全文
posted @ 2024-05-23 10:58 龙卷风吹毁停车场 阅读(76) 评论(0) 推荐(0) 编辑
摘要: 1.在父窗体中定义和声明委托 2.将方法赋值给委托变量 3.将变量传递给子窗体 4.子窗体接受父窗体传递的委托,并调用 阅读全文
posted @ 2024-05-23 08:37 龙卷风吹毁停车场 阅读(3) 评论(0) 推荐(0) 编辑
摘要: 1.选择要备份的数据库,单机右键 2.选择任务 3选择备份弹出如下界面 4.记住备份路径,(路径不能包含中文,否则会找不到文件) 5.打开另外一台计算机上的sqlserver,新建一个和备份数据库一样的名字数据库 6. 单机右键->点击任务->点击还原->数据库 7.在弹出的窗体中选择 "设备选项" 阅读全文
posted @ 2024-05-23 08:16 龙卷风吹毁停车场 阅读(14) 评论(0) 推荐(0) 编辑
摘要: 目录结构 定义泛型反射 ToModel.cs文件 using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using System.Threadi 阅读全文
posted @ 2024-05-22 22:13 龙卷风吹毁停车场 阅读(4) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 36 下一页