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
45 KiB
JavaScript

12 months ago
"use strict";(self.webpackChunkfurion=self.webpackChunkfurion||[]).push([[8980],{4297:(e,n,r)=>{r.r(n),r.d(n,{assets:()=>u,contentTitle:()=>a,default:()=>p,frontMatter:()=>c,metadata:()=>d,toc:()=>h});var t=r(5893),s=r(1151),o=r(510),i=(r(4996),r(4866)),l=r(5162);const c={id:"tran",title:"9.27 \u4e8b\u52a1\u548c\u5de5\u4f5c\u5355\u5143",sidebar_label:"9.27 \u4e8b\u52a1\u548c\u5de5\u4f5c\u5355\u5143 (UnitOfWork)"},a=void 0,d={id:"tran",title:"9.27 \u4e8b\u52a1\u548c\u5de5\u4f5c\u5355\u5143",description:"\ud83d\udcdd \u6a21\u5757\u66f4\u65b0\u65e5\u5fd7",source:"@site/docs/tran.mdx",sourceDirName:".",slug:"/tran",permalink:"/docs/tran",draft:!1,unlisted:!1,editUrl:"https://gitee.com/dotnetchina/Furion/tree/v4/handbook/docs/tran.mdx",tags:[],version:"current",lastUpdatedBy:"\u767e\u5c0f\u50e7",lastUpdatedAt:1698699579,formattedLastUpdatedAt:"Oct 30, 2023",frontMatter:{id:"tran",title:"9.27 \u4e8b\u52a1\u548c\u5de5\u4f5c\u5355\u5143",sidebar_label:"9.27 \u4e8b\u52a1\u548c\u5de5\u4f5c\u5355\u5143 (UnitOfWork)"},sidebar:"docs",previous:{title:"9.26 \u5b9e\u4f53\u6570\u636e\u76d1\u542c\u5668",permalink:"/docs/dbcontext-entitytrigger"},next:{title:"9.28 \u8bfb\u5199\u5206\u79bb/\u4e3b\u4ece\u590d\u5236",permalink:"/docs/dbcontext-read-write"}},u={},h=[{value:"9.27.1 \u4e8b\u52a1",id:"9271-\u4e8b\u52a1",level:2},{value:"9.27.2 \u5de5\u4f5c\u5355\u5143",id:"9272-\u5de5\u4f5c\u5355\u5143",level:2},{value:"9.27.3 \u5982\u4f55\u4f7f\u7528",id:"9273-\u5982\u4f55\u4f7f\u7528",level:2},{value:"9.27.3.1 <code>[UnitOfWork]</code> \u81ea\u52a8\u7ba1\u7406",id:"92731-unitofwork-\u81ea\u52a8\u7ba1\u7406",level:3},{value:"9.27.3.2 <code>EnsureTransaction()</code> \u65b9\u6cd5 \u2728",id:"92732-ensuretransaction-\u65b9\u6cd5-",level:3},{value:"9.27.3.2 \u624b\u52a8\u7ba1\u7406",id:"92732-\u624b\u52a8\u7ba1\u7406",level:3},{value:"9.27.3.3 <code>EnableRetryOnFailure</code> \u9519\u8bef\u5904\u7406",id:"92733-enableretryonfailure-\u9519\u8bef\u5904\u7406",level:3},{value:"9.27.4 \u5de5\u4f5c\u5355\u5143\u7279\u6027\u8bf4\u660e",id:"9274-\u5de5\u4f5c\u5355\u5143\u7279\u6027\u8bf4\u660e",level:2},{value:"9.27.4.1 <code>[UnitOfWork]</code> \u7279\u6027",id:"92741-unitofwork-\u7279\u6027",level:3},{value:"9.27.4.2 <code>[ManualCommit]</code> \u7279\u6027",id:"92742-manualcommit-\u7279\u6027",level:3},{value:"9.27.5 \u53cd\u9988\u4e0e\u5efa\u8bae",id:"9275-\u53cd\u9988\u4e0e\u5efa\u8bae",level:2}];function x(e){const n={a:"a",admonition:"admonition",code:"code",h2:"h2",h3:"h3",hr:"hr",li:"li",p:"p",pre:"pre",strong:"strong",ul:"ul",...(0,s.a)(),...e.components},{Details:r}=n;return r||function(e,n){throw new Error("Expected "+(n?"component":"object")+" `"+e+"` to be defined: you likely forgot to import, pass, or provide it.")}("Details",!0),(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)(r,{children:[(0,t.jsx)("summary",{children:"\ud83d\udcdd \u6a21\u5757\u66f4\u65b0\u65e5\u5fd7"}),(0,t.jsx)("div",{children:(0,t.jsx)("div",{children:(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\n",(0,t.jsx)(n.p,{children:(0,t.jsx)(n.strong,{children:"\u95ee\u9898\u4fee\u590d"})}),"\n",(0,t.jsxs)(n.ul,{children:["\n",(0,t.jsxs)(n.li,{children:["\xa0",(0,t.jsx)(o.Z,{children:"\u4fee\u590d"})," ",(0,t.jsx)(n.code,{children:"Scoped.CreateUowAsync"})," \u4f5c\u7528\u57df\u5de5\u4f5c\u5355\u5143\u5f02\u5e38\u65e0\u6cd5\u56de\u6eda\u95ee\u9898 ",(0,t.jsx)("sup",{children:"4.8.8.44"})," ",(0,t.jsx)("sup",{children:"\u23f1\ufe0f2023.09.23"})," ",(0,t.jsx)(n.a,{href:"https://gitee.com/dotnetchina/Furion/issues/I833I9",children:"#I833I9"})]}),"\n"]}),"\n"]}),"\n"]})})})]}),"\n",(0,t.jsx)(n.h2,{id:"9271-\u4e8b\u52a1",children:"9.27.1 \u4e8b\u52a1"}),"\n",(0,t.jsxs)(n.p,{children:["\u4e8b\u52a1\u6307\u4f5c\u4e3a\u5355\u4e2a\u903b\u8f91\u5de5\u4f5c\u5355\u5143\u6267\u884c\u7684\u4e00\u7cfb\u5217\u64cd\u4f5c\uff0c\u8981\u4e48",(0,t.jsx)(n.strong,{children:"\u5b8c\u5168\u5730\u6267\u884c\uff0c\u8981\u4e48\u5b8c\u5168\u5730\u4e0d\u6267\u884c"}),"\u3002"]}),"\n",(0,t.jsxs)(n.p,{children:["\u7b80\u5355\u7684\u8bf4\uff0c\u4e8b\u52a1\u5c31\u662f\u5e76\u53d1\u63a7\u5236\u7684