计算机-外文翻译-外文文献-英文文献-统一建模语言-Visual-Studio-.doc
上传人:美丽****ka 上传时间:2024-09-11 格式:DOC 页数:7 大小:69KB 金币:10 举报 版权申诉
预览加载中,请您耐心等待几秒...

在线预览结束,喜欢就下载吧,查找使用更方便

10 金币

下载此文档

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

本科科设计(论文)外文翻译原文:HowVisualStudio.NETGeneratesSQLStatementsforConcurrencyControlAuthor:SteveSteinVisualStudioTeamAbstract:ThispaperexaminestheSQLstatementsVisualStudio®.NETgeneratesfordifferentkindsofconcurrencycontrol,howtomodifythemforbetterperformance,andhowtogenerateastatementthatdoesnotuseconcurrencycontrol.(5printedpages).IntroductionAnyapplicationthatmighthavemultipleuserssimultaneouslyattemptingtoaccessandmodifydataneedssomeformofconcurrencycontrol.Otherwise,oneuser'schangescouldinadvertentlyoverwritemodificationsfromotherusers.ThedesigntoolsinVisualStudio.NETcancreateSQLstatementsthatusethe"checkallvalues"approachtooptimisticconcurrencyorthe"last-inwins"approachtoupdatingdata.Thispaperwillexplain:Howeachofthesestatementtypesaregenerated.HowtomodifythegeneratedSQLstatementforbetterperformance.PrerequisitesYoushouldhaveanunderstandingof:FundamentalADO.NETdataconcepts,includingdatasetsanddataadapters.Formoreinformation,seeIntroductiontoDataAccesswithADO.NET.ConcurrencycontrolbasicsandtheoptionsavailableinVisualStudio.NET.Formoreinformation,seeIntroductiontoDataConcurrencyinADO.NET.WhereAretheSQLStatements?SQLstatementsarelocatedintheCommandTextpropertyofcommandobjects.SQLcommandsareautomaticallygeneratedatdesigntimewhenconfiguringdataadapters,andatruntimewhenusingcommandbuilderobjects.Formoreinformation,seeConcurrencyandCommandBuilderObjets.beforeushaveaddressedoverlaynetworkprogrammingissues.EvenearlyoverlaynetworkConfiguringDataAdaptersDragadataadapterfromtheDatataboftheToolboxDragatablefromServerExplorerModifyinganexistingadapter,byselectingadataadapterandclickingtheConfigureDataAdapterlinkatthebottomofthePropertieswindow.CommandBuilderobjectsCommandbuilderobjectsarecreatedprogrammaticallyatruntime.Formoreinformation,see(SqlCommandBuilderorOleDbCommandBuilder)ConcurrencyandDataAdaptersWhenconfiguringdataadapterswiththeDataAdapterConfigurationWizard,youcandecidewhethertouseoptimisticconcurrencyforthegeneratedUpdateandDeletestatements.Cons