参考资料:Cooper Liu 毒逆天

 

 一、Dapper安装

  添加引用-->NuGet管理-->搜索Dapper-->安装

一、Dapper基本操作

 

二、新建表 

--创建一个员工表
create table Employee
(
    Em_Id int identity(1,1) primary key,
    Em_Name varchar(50) not null,
    Em_Age int default(18) not null
)

--部门表
Create Table Department
(
    Depart_Id int identity(1,1) primary key,
    Depart_Name varchar(20) not null,    
)

--员工所属部门关系表
Create table EmployeePartment
(
    EP_Id int identity(1,1) primary key,
    Em_Id int not null,
    Depart_Id int not null
)
View Code

相关文章:

  • 2021-10-22
  • 2021-11-22
  • 2021-04-24
  • 2021-03-28
  • 2021-09-14
  • 2021-09-02
  • 2022-01-03
  • 2021-09-28
猜你喜欢
  • 2021-07-11
  • 2021-10-08
  • 2022-12-23
  • 2022-12-23
  • 2023-02-25
  • 2022-01-17
  • 2022-12-23
相关资源
相似解决方案