You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
14 KiB
JavaScript

12 months ago
"use strict";(self.webpackChunkfurion=self.webpackChunkfurion||[]).push([[984],{3066:(e,r,n)=>{n.r(r),n.d(r,{assets:()=>a,contentTitle:()=>t,default:()=>l,frontMatter:()=>o,metadata:()=>d,toc:()=>c});var s=n(5893),i=n(1151);const o={id:"dapper",title:"10.2 Dapper \u96c6\u6210",sidebar_label:"10.2 Dapper \u96c6\u6210"},t=void 0,d={id:"dapper",title:"10.2 Dapper \u96c6\u6210",description:"\u5728 Furion \u5305\u4e2d\u9ed8\u8ba4\u96c6\u6210\u4e86 EFCore\uff0c\u5982\u679c\u4e0d\u4f7f\u7528 EFCore\uff0c\u53ef\u5b89\u88c5\u7eaf\u51c0\u7248 Furion.Pure \u4ee3\u66ff Furion\u3002",source:"@site/docs/dapper.mdx",sourceDirName:".",slug:"/dapper",permalink:"/docs/dapper",draft:!1,unlisted:!1,editUrl:"https://gitee.com/dotnetchina/Furion/tree/v4/handbook/docs/dapper.mdx",tags:[],version:"current",lastUpdatedBy:"MonkSoul",lastUpdatedAt:1660021283,formattedLastUpdatedAt:"Aug 9, 2022",frontMatter:{id:"dapper",title:"10.2 Dapper \u96c6\u6210",sidebar_label:"10.2 Dapper \u96c6\u6210"},sidebar:"docs",previous:{title:"10.1 SqlSugar \u96c6\u6210",permalink:"/docs/sqlsugar"},next:{title:"10.3 MongoDB \u64cd\u4f5c",permalink:"/docs/mongodb"}},a={},c=[{value:"10.2.1 \u5173\u4e8e Dapper",id:"1021-\u5173\u4e8e-dapper",level:2},{value:"10.2.2 \u5982\u4f55\u96c6\u6210",id:"1022-\u5982\u4f55\u96c6\u6210",level:2},{value:"10.2.2.1 \u6ce8\u518c <code>Dapper</code> \u670d\u52a1",id:"10221-\u6ce8\u518c-dapper-\u670d\u52a1",level:3},{value:"10.2.2.2 \u5b89\u88c5\u5bf9\u5e94\u7684\u6570\u636e\u5e93\u63d0\u4f9b\u5668",id:"10222-\u5b89\u88c5\u5bf9\u5e94\u7684\u6570\u636e\u5e93\u63d0\u4f9b\u5668",level:3},{value:"10.2.3 \u57fa\u672c\u4f7f\u7528",id:"1023-\u57fa\u672c\u4f7f\u7528",level:2},{value:"10.2.3.1 <code>sql</code> \u64cd\u4f5c",id:"10231-sql-\u64cd\u4f5c",level:3},{value:"10.2.3.2 <code>&lt;TEntity&gt;</code> \u64cd\u4f5c",id:"10232-tentity-\u64cd\u4f5c",level:3},{value:"10.2.4 \u9ad8\u7ea7\u4f7f\u7528",id:"1024-\u9ad8\u7ea7\u4f7f\u7528",level:2},{value:"10.2.4.1 \u67e5\u8be2\u4e00\u5bf9\u4e00",id:"10241-\u67e5\u8be2\u4e00\u5bf9\u4e00",level:3},{value:"10.2.4.2 \u67e5\u8be2\u591a\u4e2a\u7ed3\u679c",id:"10242-\u67e5\u8be2\u591a\u4e2a\u7ed3\u679c",level:3},{value:"10.2.4.3 \u66f4\u591a\u64cd\u4f5c",id:"10243-\u66f4\u591a\u64cd\u4f5c",level:3},{value:"10.2.5 \u53cd\u9988\u4e0e\u5efa\u8bae",id:"1025-\u53cd\u9988\u4e0e\u5efa\u8bae",level:2}];function p(e){const r={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,i.a)(),...e.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(r.admonition,{title:"\u6e29\u99a8\u63d0\u9192",type:"warning",children:(0,s.jsxs)(r.p,{children:["\u5728 ",(0,s.jsx)(r.code,{children:"Furion"})," \u5305\u4e2d\u9ed8\u8ba4\u96c6\u6210\u4e86 ",(0,s.jsx)(r.code,{children:"EFCore"}),"\uff0c",(0,s.jsxs)(r.strong,{children:["\u5982\u679c\u4e0d\u4f7f\u7528 ",(0,s.jsx)(r.code,{children:"EFCore"}),"\uff0c\u53ef\u5b89\u88c5\u7eaf\u51c0\u7248 ",(0,s.jsx)(r.code,{children:"Furion.Pure"})," \u4ee3\u66ff ",(0,s.jsx)(r.code,{children:"Furion"})]}),"\u3002"]})}),"\n",(0,s.jsx)(r.h2,{id:"1021-\u5173\u4e8e-dapper",children:"10.2.1 \u5173\u4e8e Dapper"}),"\n",(0,s.jsxs)(r.p,{children:[(0,s.jsx)(r.code,{children:"Dapper"})," \u662f .NET/C# \u5e73\u53f0\u975e\u5e38\u4f18\u79c0\u7684 ",(0,s.jsx)(r.code,{children:"\u5fae\u578b ORM"})," \u6846\u67b6\uff0c\u4e3b\u8981\u662f\u4e3a ",(0,s.jsx)(r.code,{children:"ADO.NET"})," \u64cd\u4f5c\u5bf9\u8c61\u63d0\u4f9b\u62d3\u5c55\u80fd\u529b\uff0c\u63a8\u5d07\u539f\u751f ",(0,s.jsx)(r.code,{children:"sql"})," \u64cd\u4f5c\u6cd5\u3002"]}),"\n",(0,s.jsxs)(r.p,{children:[(0,s.jsx)(r.code,{children:"Dapper"})," \u5b98\u65b9\u4ed3\u5e93\u5730\u5740\uff1a",(0,s.jsx)(r.a,{href:"https://github.com/StackExchange/Dapper",children:"https://github.com/StackExchange/Dapper"})]}),"\n",(0,s.jsx)(r.h2,{id:"1022-\u5982\u4f55\u96c6\u6210",children:"10.2.2 \u5982\u4f55\u96c6\u6210"}),"\n",(0,s.jsxs)(r.p,{children:["\u5728 ",(0,s.jsx)(r.code,{children:"Furion"})," \u6846\u67b6\u4e2d\uff0c\u5df2\u7ecf\u63a8\u51fa ",(0,s.jsx)(r.code,{children:"Dapper"})," \u62d