摘要: datagridview中单元格显示图片,图片的增删改查 点击单元格选择图片 1、Employer public class Employer { public int Id; public string Name; public string PhoneNum; public string Add 阅读全文
posted @ 2023-12-05 17:16 我kkkkkk 阅读(35) 评论(0) 推荐(0)
摘要: 1、选择图片 2、存入数据库 3、从数据库读取图片 4、页面 public partial class Form1 : Form { public Form1() { InitializeComponent(); } /// <summary> /// 选择 /// </summary> /// < 阅读全文
posted @ 2023-12-05 16:46 我kkkkkk 阅读(52) 评论(0) 推荐(0)
摘要: dapper的使用 1、引用包 2、student类 [Table("dbo.Student")] public partial class Student { [Required] public int Id { get; set; } public string Name { get; set; 阅读全文
posted @ 2023-12-03 21:20 我kkkkkk 阅读(114) 评论(0) 推荐(0)
摘要: 使用sqlSugar和仓储模式实现增删改查 引入包 1、Student类,数据库实体 public class Student { [SugarColumn(IsPrimaryKey = true , IsIdentity = true )] public int Id { get ; set ; 阅读全文
posted @ 2023-11-22 11:25 我kkkkkk 阅读(350) 评论(0) 推荐(0)
摘要: 使用sqlhelper比较简单 1、学生类 1 public class Student 2 { 3 public int id; 4 public string name; 5 public string address; 6 } 2、SQLHelper类 public static class 阅读全文
posted @ 2023-11-15 17:44 我kkkkkk 阅读(36) 评论(0) 推荐(0)