_LesnichukEvgenuiAleksandrovich_19DataSet.Designer.cs 307 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048
  1. //------------------------------------------------------------------------------
  2. // <auto-generated>
  3. // Этот код создан программой.
  4. // Исполняемая версия:4.0.30319.42000
  5. //
  6. // Изменения в этом файле могут привести к неправильной работе и будут потеряны в случае
  7. // повторной генерации кода.
  8. // </auto-generated>
  9. //------------------------------------------------------------------------------
  10. #pragma warning disable 1591
  11. namespace LesnichukEvgenuiAleksandrovich_19 {
  12. /// <summary>
  13. ///Represents a strongly typed in-memory cache of data.
  14. ///</summary>
  15. [global::System.Serializable()]
  16. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  17. [global::System.ComponentModel.ToolboxItem(true)]
  18. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedDataSetSchema")]
  19. [global::System.Xml.Serialization.XmlRootAttribute("_LesnichukEvgenuiAleksandrovich_19DataSet")]
  20. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.DataSet")]
  21. public partial class _LesnichukEvgenuiAleksandrovich_19DataSet : global::System.Data.DataSet {
  22. private БиблиотекарьDataTable tableБиблиотекарь;
  23. private ВыдачаDataTable tableВыдача;
  24. private ЗалDataTable tableЗал;
  25. private КнигаDataTable tableКнига;
  26. private ЧитательDataTable tableЧитатель;
  27. private global::System.Data.DataRelation relationFK_Выдача_Библиотекарь;
  28. private global::System.Data.DataRelation relationFK_Выдача_Зал;
  29. private global::System.Data.DataRelation relationFK_Выдача_Книга;
  30. private global::System.Data.DataRelation relationFK_Выдача_Читатель;
  31. private global::System.Data.SchemaSerializationMode _schemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  32. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  33. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  34. public _LesnichukEvgenuiAleksandrovich_19DataSet() {
  35. this.BeginInit();
  36. this.InitClass();
  37. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  38. base.Tables.CollectionChanged += schemaChangedHandler;
  39. base.Relations.CollectionChanged += schemaChangedHandler;
  40. this.EndInit();
  41. }
  42. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  43. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  44. protected _LesnichukEvgenuiAleksandrovich_19DataSet(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  45. base(info, context, false) {
  46. if ((this.IsBinarySerialized(info, context) == true)) {
  47. this.InitVars(false);
  48. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler1 = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  49. this.Tables.CollectionChanged += schemaChangedHandler1;
  50. this.Relations.CollectionChanged += schemaChangedHandler1;
  51. return;
  52. }
  53. string strSchema = ((string)(info.GetValue("XmlSchema", typeof(string))));
  54. if ((this.DetermineSchemaSerializationMode(info, context) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  55. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  56. ds.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  57. if ((ds.Tables["Библиотекарь"] != null)) {
  58. base.Tables.Add(new БиблиотекарьDataTable(ds.Tables["Библиотекарь"]));
  59. }
  60. if ((ds.Tables["Выдача"] != null)) {
  61. base.Tables.Add(new ВыдачаDataTable(ds.Tables["Выдача"]));
  62. }
  63. if ((ds.Tables["Зал"] != null)) {
  64. base.Tables.Add(new ЗалDataTable(ds.Tables["Зал"]));
  65. }
  66. if ((ds.Tables["Книга"] != null)) {
  67. base.Tables.Add(new КнигаDataTable(ds.Tables["Книга"]));
  68. }
  69. if ((ds.Tables["Читатель"] != null)) {
  70. base.Tables.Add(new ЧитательDataTable(ds.Tables["Читатель"]));
  71. }
  72. this.DataSetName = ds.DataSetName;
  73. this.Prefix = ds.Prefix;
  74. this.Namespace = ds.Namespace;
  75. this.Locale = ds.Locale;
  76. this.CaseSensitive = ds.CaseSensitive;
  77. this.EnforceConstraints = ds.EnforceConstraints;
  78. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  79. this.InitVars();
  80. }
  81. else {
  82. this.ReadXmlSchema(new global::System.Xml.XmlTextReader(new global::System.IO.StringReader(strSchema)));
  83. }
  84. this.GetSerializationData(info, context);
  85. global::System.ComponentModel.CollectionChangeEventHandler schemaChangedHandler = new global::System.ComponentModel.CollectionChangeEventHandler(this.SchemaChanged);
  86. base.Tables.CollectionChanged += schemaChangedHandler;
  87. this.Relations.CollectionChanged += schemaChangedHandler;
  88. }
  89. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  90. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  91. [global::System.ComponentModel.Browsable(false)]
  92. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  93. public БиблиотекарьDataTable Библиотекарь {
  94. get {
  95. return this.tableБиблиотекарь;
  96. }
  97. }
  98. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  99. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  100. [global::System.ComponentModel.Browsable(false)]
  101. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  102. public ВыдачаDataTable Выдача {
  103. get {
  104. return this.tableВыдача;
  105. }
  106. }
  107. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  108. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  109. [global::System.ComponentModel.Browsable(false)]
  110. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  111. public ЗалDataTable Зал {
  112. get {
  113. return this.tableЗал;
  114. }
  115. }
  116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  118. [global::System.ComponentModel.Browsable(false)]
  119. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  120. public КнигаDataTable Книга {
  121. get {
  122. return this.tableКнига;
  123. }
  124. }
  125. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  126. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  127. [global::System.ComponentModel.Browsable(false)]
  128. [global::System.ComponentModel.DesignerSerializationVisibility(global::System.ComponentModel.DesignerSerializationVisibility.Content)]
  129. public ЧитательDataTable Читатель {
  130. get {
  131. return this.tableЧитатель;
  132. }
  133. }
  134. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  135. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  136. [global::System.ComponentModel.BrowsableAttribute(true)]
  137. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Visible)]
  138. public override global::System.Data.SchemaSerializationMode SchemaSerializationMode {
  139. get {
  140. return this._schemaSerializationMode;
  141. }
  142. set {
  143. this._schemaSerializationMode = value;
  144. }
  145. }
  146. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  147. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  148. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  149. public new global::System.Data.DataTableCollection Tables {
  150. get {
  151. return base.Tables;
  152. }
  153. }
  154. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  155. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  156. [global::System.ComponentModel.DesignerSerializationVisibilityAttribute(global::System.ComponentModel.DesignerSerializationVisibility.Hidden)]
  157. public new global::System.Data.DataRelationCollection Relations {
  158. get {
  159. return base.Relations;
  160. }
  161. }
  162. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  163. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  164. protected override void InitializeDerivedDataSet() {
  165. this.BeginInit();
  166. this.InitClass();
  167. this.EndInit();
  168. }
  169. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  170. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  171. public override global::System.Data.DataSet Clone() {
  172. _LesnichukEvgenuiAleksandrovich_19DataSet cln = ((_LesnichukEvgenuiAleksandrovich_19DataSet)(base.Clone()));
  173. cln.InitVars();
  174. cln.SchemaSerializationMode = this.SchemaSerializationMode;
  175. return cln;
  176. }
  177. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  178. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  179. protected override bool ShouldSerializeTables() {
  180. return false;
  181. }
  182. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  183. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  184. protected override bool ShouldSerializeRelations() {
  185. return false;
  186. }
  187. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  188. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  189. protected override void ReadXmlSerializable(global::System.Xml.XmlReader reader) {
  190. if ((this.DetermineSchemaSerializationMode(reader) == global::System.Data.SchemaSerializationMode.IncludeSchema)) {
  191. this.Reset();
  192. global::System.Data.DataSet ds = new global::System.Data.DataSet();
  193. ds.ReadXml(reader);
  194. if ((ds.Tables["Библиотекарь"] != null)) {
  195. base.Tables.Add(new БиблиотекарьDataTable(ds.Tables["Библиотекарь"]));
  196. }
  197. if ((ds.Tables["Выдача"] != null)) {
  198. base.Tables.Add(new ВыдачаDataTable(ds.Tables["Выдача"]));
  199. }
  200. if ((ds.Tables["Зал"] != null)) {
  201. base.Tables.Add(new ЗалDataTable(ds.Tables["Зал"]));
  202. }
  203. if ((ds.Tables["Книга"] != null)) {
  204. base.Tables.Add(new КнигаDataTable(ds.Tables["Книга"]));
  205. }
  206. if ((ds.Tables["Читатель"] != null)) {
  207. base.Tables.Add(new ЧитательDataTable(ds.Tables["Читатель"]));
  208. }
  209. this.DataSetName = ds.DataSetName;
  210. this.Prefix = ds.Prefix;
  211. this.Namespace = ds.Namespace;
  212. this.Locale = ds.Locale;
  213. this.CaseSensitive = ds.CaseSensitive;
  214. this.EnforceConstraints = ds.EnforceConstraints;
  215. this.Merge(ds, false, global::System.Data.MissingSchemaAction.Add);
  216. this.InitVars();
  217. }
  218. else {
  219. this.ReadXml(reader);
  220. this.InitVars();
  221. }
  222. }
  223. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  224. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  225. protected override global::System.Xml.Schema.XmlSchema GetSchemaSerializable() {
  226. global::System.IO.MemoryStream stream = new global::System.IO.MemoryStream();
  227. this.WriteXmlSchema(new global::System.Xml.XmlTextWriter(stream, null));
  228. stream.Position = 0;
  229. return global::System.Xml.Schema.XmlSchema.Read(new global::System.Xml.XmlTextReader(stream), null);
  230. }
  231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  233. internal void InitVars() {
  234. this.InitVars(true);
  235. }
  236. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  237. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  238. internal void InitVars(bool initTable) {
  239. this.tableБиблиотекарь = ((БиблиотекарьDataTable)(base.Tables["Библиотекарь"]));
  240. if ((initTable == true)) {
  241. if ((this.tableБиблиотекарь != null)) {
  242. this.tableБиблиотекарь.InitVars();
  243. }
  244. }
  245. this.tableВыдача = ((ВыдачаDataTable)(base.Tables["Выдача"]));
  246. if ((initTable == true)) {
  247. if ((this.tableВыдача != null)) {
  248. this.tableВыдача.InitVars();
  249. }
  250. }
  251. this.tableЗал = ((ЗалDataTable)(base.Tables["Зал"]));
  252. if ((initTable == true)) {
  253. if ((this.tableЗал != null)) {
  254. this.tableЗал.InitVars();
  255. }
  256. }
  257. this.tableКнига = ((КнигаDataTable)(base.Tables["Книга"]));
  258. if ((initTable == true)) {
  259. if ((this.tableКнига != null)) {
  260. this.tableКнига.InitVars();
  261. }
  262. }
  263. this.tableЧитатель = ((ЧитательDataTable)(base.Tables["Читатель"]));
  264. if ((initTable == true)) {
  265. if ((this.tableЧитатель != null)) {
  266. this.tableЧитатель.InitVars();
  267. }
  268. }
  269. this.relationFK_Выдача_Библиотекарь = this.Relations["FK_Выдача_Библиотекарь"];
  270. this.relationFK_Выдача_Зал = this.Relations["FK_Выдача_Зал"];
  271. this.relationFK_Выдача_Книга = this.Relations["FK_Выдача_Книга"];
  272. this.relationFK_Выдача_Читатель = this.Relations["FK_Выдача_Читатель"];
  273. }
  274. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  275. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  276. private void InitClass() {
  277. this.DataSetName = "_LesnichukEvgenuiAleksandrovich_19DataSet";
  278. this.Prefix = "";
  279. this.Namespace = "http://tempuri.org/_LesnichukEvgenuiAleksandrovich_19DataSet.xsd";
  280. this.EnforceConstraints = true;
  281. this.SchemaSerializationMode = global::System.Data.SchemaSerializationMode.IncludeSchema;
  282. this.tableБиблиотекарь = new БиблиотекарьDataTable();
  283. base.Tables.Add(this.tableБиблиотекарь);
  284. this.tableВыдача = new ВыдачаDataTable();
  285. base.Tables.Add(this.tableВыдача);
  286. this.tableЗал = new ЗалDataTable();
  287. base.Tables.Add(this.tableЗал);
  288. this.tableКнига = new КнигаDataTable();
  289. base.Tables.Add(this.tableКнига);
  290. this.tableЧитатель = new ЧитательDataTable();
  291. base.Tables.Add(this.tableЧитатель);
  292. this.relationFK_Выдача_Библиотекарь = new global::System.Data.DataRelation("FK_Выдача_Библиотекарь", new global::System.Data.DataColumn[] {
  293. this.tableБиблиотекарь.Номер_библиотекаряColumn}, new global::System.Data.DataColumn[] {
  294. this.tableВыдача.Номер_библиотекаряColumn}, false);
  295. this.Relations.Add(this.relationFK_Выдача_Библиотекарь);
  296. this.relationFK_Выдача_Зал = new global::System.Data.DataRelation("FK_Выдача_Зал", new global::System.Data.DataColumn[] {
  297. this.tableЗал.Номер_залаColumn}, new global::System.Data.DataColumn[] {
  298. this.tableВыдача.Номер_залаColumn}, false);
  299. this.Relations.Add(this.relationFK_Выдача_Зал);
  300. this.relationFK_Выдача_Книга = new global::System.Data.DataRelation("FK_Выдача_Книга", new global::System.Data.DataColumn[] {
  301. this.tableКнига.Шифр_книгиColumn}, new global::System.Data.DataColumn[] {
  302. this.tableВыдача.Номер_книгиColumn}, false);
  303. this.Relations.Add(this.relationFK_Выдача_Книга);
  304. this.relationFK_Выдача_Читатель = new global::System.Data.DataRelation("FK_Выдача_Читатель", new global::System.Data.DataColumn[] {
  305. this.tableЧитатель.Номер_читателяColumn}, new global::System.Data.DataColumn[] {
  306. this.tableВыдача.Номер_читателяColumn}, false);
  307. this.Relations.Add(this.relationFK_Выдача_Читатель);
  308. }
  309. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  310. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  311. private bool ShouldSerializeБиблиотекарь() {
  312. return false;
  313. }
  314. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  315. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  316. private bool ShouldSerializeВыдача() {
  317. return false;
  318. }
  319. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  321. private bool ShouldSerializeЗал() {
  322. return false;
  323. }
  324. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  325. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  326. private bool ShouldSerializeКнига() {
  327. return false;
  328. }
  329. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  330. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  331. private bool ShouldSerializeЧитатель() {
  332. return false;
  333. }
  334. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  335. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  336. private void SchemaChanged(object sender, global::System.ComponentModel.CollectionChangeEventArgs e) {
  337. if ((e.Action == global::System.ComponentModel.CollectionChangeAction.Remove)) {
  338. this.InitVars();
  339. }
  340. }
  341. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  342. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  343. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedDataSetSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  344. _LesnichukEvgenuiAleksandrovich_19DataSet ds = new _LesnichukEvgenuiAleksandrovich_19DataSet();
  345. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  346. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  347. global::System.Xml.Schema.XmlSchemaAny any = new global::System.Xml.Schema.XmlSchemaAny();
  348. any.Namespace = ds.Namespace;
  349. sequence.Items.Add(any);
  350. type.Particle = sequence;
  351. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  352. if (xs.Contains(dsSchema.TargetNamespace)) {
  353. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  354. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  355. try {
  356. global::System.Xml.Schema.XmlSchema schema = null;
  357. dsSchema.Write(s1);
  358. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  359. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  360. s2.SetLength(0);
  361. schema.Write(s2);
  362. if ((s1.Length == s2.Length)) {
  363. s1.Position = 0;
  364. s2.Position = 0;
  365. for (; ((s1.Position != s1.Length)
  366. && (s1.ReadByte() == s2.ReadByte())); ) {
  367. ;
  368. }
  369. if ((s1.Position == s1.Length)) {
  370. return type;
  371. }
  372. }
  373. }
  374. }
  375. finally {
  376. if ((s1 != null)) {
  377. s1.Close();
  378. }
  379. if ((s2 != null)) {
  380. s2.Close();
  381. }
  382. }
  383. }
  384. xs.Add(dsSchema);
  385. return type;
  386. }
  387. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  388. public delegate void БиблиотекарьRowChangeEventHandler(object sender, БиблиотекарьRowChangeEvent e);
  389. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  390. public delegate void ВыдачаRowChangeEventHandler(object sender, ВыдачаRowChangeEvent e);
  391. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  392. public delegate void ЗалRowChangeEventHandler(object sender, ЗалRowChangeEvent e);
  393. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  394. public delegate void КнигаRowChangeEventHandler(object sender, КнигаRowChangeEvent e);
  395. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  396. public delegate void ЧитательRowChangeEventHandler(object sender, ЧитательRowChangeEvent e);
  397. /// <summary>
  398. ///Represents the strongly named DataTable class.
  399. ///</summary>
  400. [global::System.Serializable()]
  401. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  402. public partial class БиблиотекарьDataTable : global::System.Data.TypedTableBase<БиблиотекарьRow> {
  403. private global::System.Data.DataColumn columnНомер_библиотекаря;
  404. private global::System.Data.DataColumn columnФамилия;
  405. private global::System.Data.DataColumn columnИмя;
  406. private global::System.Data.DataColumn columnОтчество;
  407. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  408. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  409. public БиблиотекарьDataTable() {
  410. this.TableName = "Библиотекарь";
  411. this.BeginInit();
  412. this.InitClass();
  413. this.EndInit();
  414. }
  415. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  416. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  417. internal БиблиотекарьDataTable(global::System.Data.DataTable table) {
  418. this.TableName = table.TableName;
  419. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  420. this.CaseSensitive = table.CaseSensitive;
  421. }
  422. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  423. this.Locale = table.Locale;
  424. }
  425. if ((table.Namespace != table.DataSet.Namespace)) {
  426. this.Namespace = table.Namespace;
  427. }
  428. this.Prefix = table.Prefix;
  429. this.MinimumCapacity = table.MinimumCapacity;
  430. }
  431. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  432. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  433. protected БиблиотекарьDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  434. base(info, context) {
  435. this.InitVars();
  436. }
  437. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  438. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  439. public global::System.Data.DataColumn Номер_библиотекаряColumn {
  440. get {
  441. return this.columnНомер_библиотекаря;
  442. }
  443. }
  444. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  445. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  446. public global::System.Data.DataColumn ФамилияColumn {
  447. get {
  448. return this.columnФамилия;
  449. }
  450. }
  451. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  452. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  453. public global::System.Data.DataColumn ИмяColumn {
  454. get {
  455. return this.columnИмя;
  456. }
  457. }
  458. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  459. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  460. public global::System.Data.DataColumn ОтчествоColumn {
  461. get {
  462. return this.columnОтчество;
  463. }
  464. }
  465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  467. [global::System.ComponentModel.Browsable(false)]
  468. public int Count {
  469. get {
  470. return this.Rows.Count;
  471. }
  472. }
  473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  475. public БиблиотекарьRow this[int index] {
  476. get {
  477. return ((БиблиотекарьRow)(this.Rows[index]));
  478. }
  479. }
  480. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  481. public event БиблиотекарьRowChangeEventHandler БиблиотекарьRowChanging;
  482. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  483. public event БиблиотекарьRowChangeEventHandler БиблиотекарьRowChanged;
  484. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  485. public event БиблиотекарьRowChangeEventHandler БиблиотекарьRowDeleting;
  486. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  487. public event БиблиотекарьRowChangeEventHandler БиблиотекарьRowDeleted;
  488. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  489. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  490. public void AddБиблиотекарьRow(БиблиотекарьRow row) {
  491. this.Rows.Add(row);
  492. }
  493. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  494. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  495. public БиблиотекарьRow AddБиблиотекарьRow(string Фамилия, string Имя, string Отчество) {
  496. БиблиотекарьRow rowБиблиотекарьRow = ((БиблиотекарьRow)(this.NewRow()));
  497. object[] columnValuesArray = new object[] {
  498. null,
  499. Фамилия,
  500. Имя,
  501. Отчество};
  502. rowБиблиотекарьRow.ItemArray = columnValuesArray;
  503. this.Rows.Add(rowБиблиотекарьRow);
  504. return rowБиблиотекарьRow;
  505. }
  506. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  507. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  508. public БиблиотекарьRow FindByНомер_библиотекаря(int Номер_библиотекаря) {
  509. return ((БиблиотекарьRow)(this.Rows.Find(new object[] {
  510. Номер_библиотекаря})));
  511. }
  512. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  513. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  514. public override global::System.Data.DataTable Clone() {
  515. БиблиотекарьDataTable cln = ((БиблиотекарьDataTable)(base.Clone()));
  516. cln.InitVars();
  517. return cln;
  518. }
  519. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  520. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  521. protected override global::System.Data.DataTable CreateInstance() {
  522. return new БиблиотекарьDataTable();
  523. }
  524. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  525. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  526. internal void InitVars() {
  527. this.columnНомер_библиотекаря = base.Columns["Номер библиотекаря"];
  528. this.columnФамилия = base.Columns["Фамилия"];
  529. this.columnИмя = base.Columns["Имя"];
  530. this.columnОтчество = base.Columns["Отчество"];
  531. }
  532. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  533. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  534. private void InitClass() {
  535. this.columnНомер_библиотекаря = new global::System.Data.DataColumn("Номер библиотекаря", typeof(int), null, global::System.Data.MappingType.Element);
  536. base.Columns.Add(this.columnНомер_библиотекаря);
  537. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  538. base.Columns.Add(this.columnФамилия);
  539. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  540. base.Columns.Add(this.columnИмя);
  541. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  542. base.Columns.Add(this.columnОтчество);
  543. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  544. this.columnНомер_библиотекаря}, true));
  545. this.columnНомер_библиотекаря.AutoIncrement = true;
  546. this.columnНомер_библиотекаря.AutoIncrementSeed = -1;
  547. this.columnНомер_библиотекаря.AutoIncrementStep = -1;
  548. this.columnНомер_библиотекаря.AllowDBNull = false;
  549. this.columnНомер_библиотекаря.ReadOnly = true;
  550. this.columnНомер_библиотекаря.Unique = true;
  551. this.columnФамилия.AllowDBNull = false;
  552. this.columnФамилия.MaxLength = 2147483647;
  553. this.columnИмя.AllowDBNull = false;
  554. this.columnИмя.MaxLength = 2147483647;
  555. this.columnОтчество.MaxLength = 2147483647;
  556. }
  557. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  558. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  559. public БиблиотекарьRow NewБиблиотекарьRow() {
  560. return ((БиблиотекарьRow)(this.NewRow()));
  561. }
  562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  564. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  565. return new БиблиотекарьRow(builder);
  566. }
  567. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  568. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  569. protected override global::System.Type GetRowType() {
  570. return typeof(БиблиотекарьRow);
  571. }
  572. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  573. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  574. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  575. base.OnRowChanged(e);
  576. if ((this.БиблиотекарьRowChanged != null)) {
  577. this.БиблиотекарьRowChanged(this, new БиблиотекарьRowChangeEvent(((БиблиотекарьRow)(e.Row)), e.Action));
  578. }
  579. }
  580. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  581. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  582. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  583. base.OnRowChanging(e);
  584. if ((this.БиблиотекарьRowChanging != null)) {
  585. this.БиблиотекарьRowChanging(this, new БиблиотекарьRowChangeEvent(((БиблиотекарьRow)(e.Row)), e.Action));
  586. }
  587. }
  588. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  589. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  590. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  591. base.OnRowDeleted(e);
  592. if ((this.БиблиотекарьRowDeleted != null)) {
  593. this.БиблиотекарьRowDeleted(this, new БиблиотекарьRowChangeEvent(((БиблиотекарьRow)(e.Row)), e.Action));
  594. }
  595. }
  596. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  597. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  598. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  599. base.OnRowDeleting(e);
  600. if ((this.БиблиотекарьRowDeleting != null)) {
  601. this.БиблиотекарьRowDeleting(this, new БиблиотекарьRowChangeEvent(((БиблиотекарьRow)(e.Row)), e.Action));
  602. }
  603. }
  604. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  606. public void RemoveБиблиотекарьRow(БиблиотекарьRow row) {
  607. this.Rows.Remove(row);
  608. }
  609. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  610. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  611. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  612. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  613. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  614. _LesnichukEvgenuiAleksandrovich_19DataSet ds = new _LesnichukEvgenuiAleksandrovich_19DataSet();
  615. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  616. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  617. any1.MinOccurs = new decimal(0);
  618. any1.MaxOccurs = decimal.MaxValue;
  619. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  620. sequence.Items.Add(any1);
  621. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  622. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  623. any2.MinOccurs = new decimal(1);
  624. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  625. sequence.Items.Add(any2);
  626. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  627. attribute1.Name = "namespace";
  628. attribute1.FixedValue = ds.Namespace;
  629. type.Attributes.Add(attribute1);
  630. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  631. attribute2.Name = "tableTypeName";
  632. attribute2.FixedValue = "БиблиотекарьDataTable";
  633. type.Attributes.Add(attribute2);
  634. type.Particle = sequence;
  635. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  636. if (xs.Contains(dsSchema.TargetNamespace)) {
  637. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  638. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  639. try {
  640. global::System.Xml.Schema.XmlSchema schema = null;
  641. dsSchema.Write(s1);
  642. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  643. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  644. s2.SetLength(0);
  645. schema.Write(s2);
  646. if ((s1.Length == s2.Length)) {
  647. s1.Position = 0;
  648. s2.Position = 0;
  649. for (; ((s1.Position != s1.Length)
  650. && (s1.ReadByte() == s2.ReadByte())); ) {
  651. ;
  652. }
  653. if ((s1.Position == s1.Length)) {
  654. return type;
  655. }
  656. }
  657. }
  658. }
  659. finally {
  660. if ((s1 != null)) {
  661. s1.Close();
  662. }
  663. if ((s2 != null)) {
  664. s2.Close();
  665. }
  666. }
  667. }
  668. xs.Add(dsSchema);
  669. return type;
  670. }
  671. }
  672. /// <summary>
  673. ///Represents the strongly named DataTable class.
  674. ///</summary>
  675. [global::System.Serializable()]
  676. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  677. public partial class ВыдачаDataTable : global::System.Data.TypedTableBase<ВыдачаRow> {
  678. private global::System.Data.DataColumn columnНомер_записи;
  679. private global::System.Data.DataColumn columnНомер_читателя;
  680. private global::System.Data.DataColumn columnНомер_зала;
  681. private global::System.Data.DataColumn columnНомер_библиотекаря;
  682. private global::System.Data.DataColumn columnНомер_книги;
  683. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  684. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  685. public ВыдачаDataTable() {
  686. this.TableName = "Выдача";
  687. this.BeginInit();
  688. this.InitClass();
  689. this.EndInit();
  690. }
  691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  693. internal ВыдачаDataTable(global::System.Data.DataTable table) {
  694. this.TableName = table.TableName;
  695. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  696. this.CaseSensitive = table.CaseSensitive;
  697. }
  698. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  699. this.Locale = table.Locale;
  700. }
  701. if ((table.Namespace != table.DataSet.Namespace)) {
  702. this.Namespace = table.Namespace;
  703. }
  704. this.Prefix = table.Prefix;
  705. this.MinimumCapacity = table.MinimumCapacity;
  706. }
  707. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  708. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  709. protected ВыдачаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  710. base(info, context) {
  711. this.InitVars();
  712. }
  713. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  714. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  715. public global::System.Data.DataColumn Номер_записиColumn {
  716. get {
  717. return this.columnНомер_записи;
  718. }
  719. }
  720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  722. public global::System.Data.DataColumn Номер_читателяColumn {
  723. get {
  724. return this.columnНомер_читателя;
  725. }
  726. }
  727. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  728. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  729. public global::System.Data.DataColumn Номер_залаColumn {
  730. get {
  731. return this.columnНомер_зала;
  732. }
  733. }
  734. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  735. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  736. public global::System.Data.DataColumn Номер_библиотекаряColumn {
  737. get {
  738. return this.columnНомер_библиотекаря;
  739. }
  740. }
  741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  743. public global::System.Data.DataColumn Номер_книгиColumn {
  744. get {
  745. return this.columnНомер_книги;
  746. }
  747. }
  748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  750. [global::System.ComponentModel.Browsable(false)]
  751. public int Count {
  752. get {
  753. return this.Rows.Count;
  754. }
  755. }
  756. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  757. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  758. public ВыдачаRow this[int index] {
  759. get {
  760. return ((ВыдачаRow)(this.Rows[index]));
  761. }
  762. }
  763. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  764. public event ВыдачаRowChangeEventHandler ВыдачаRowChanging;
  765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  766. public event ВыдачаRowChangeEventHandler ВыдачаRowChanged;
  767. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  768. public event ВыдачаRowChangeEventHandler ВыдачаRowDeleting;
  769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  770. public event ВыдачаRowChangeEventHandler ВыдачаRowDeleted;
  771. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  772. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  773. public void AddВыдачаRow(ВыдачаRow row) {
  774. this.Rows.Add(row);
  775. }
  776. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  777. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  778. public ВыдачаRow AddВыдачаRow(ЧитательRow parentЧитательRowByFK_Выдача_Читатель, ЗалRow parentЗалRowByFK_Выдача_Зал, БиблиотекарьRow parentБиблиотекарьRowByFK_Выдача_Библиотекарь, КнигаRow parentКнигаRowByFK_Выдача_Книга) {
  779. ВыдачаRow rowВыдачаRow = ((ВыдачаRow)(this.NewRow()));
  780. object[] columnValuesArray = new object[] {
  781. null,
  782. null,
  783. null,
  784. null,
  785. null};
  786. if ((parentЧитательRowByFK_Выдача_Читатель != null)) {
  787. columnValuesArray[1] = parentЧитательRowByFK_Выдача_Читатель[0];
  788. }
  789. if ((parentЗалRowByFK_Выдача_Зал != null)) {
  790. columnValuesArray[2] = parentЗалRowByFK_Выдача_Зал[0];
  791. }
  792. if ((parentБиблиотекарьRowByFK_Выдача_Библиотекарь != null)) {
  793. columnValuesArray[3] = parentБиблиотекарьRowByFK_Выдача_Библиотекарь[0];
  794. }
  795. if ((parentКнигаRowByFK_Выдача_Книга != null)) {
  796. columnValuesArray[4] = parentКнигаRowByFK_Выдача_Книга[0];
  797. }
  798. rowВыдачаRow.ItemArray = columnValuesArray;
  799. this.Rows.Add(rowВыдачаRow);
  800. return rowВыдачаRow;
  801. }
  802. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  803. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  804. public ВыдачаRow FindByНомер_записи(int Номер_записи) {
  805. return ((ВыдачаRow)(this.Rows.Find(new object[] {
  806. Номер_записи})));
  807. }
  808. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  809. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  810. public override global::System.Data.DataTable Clone() {
  811. ВыдачаDataTable cln = ((ВыдачаDataTable)(base.Clone()));
  812. cln.InitVars();
  813. return cln;
  814. }
  815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  817. protected override global::System.Data.DataTable CreateInstance() {
  818. return new ВыдачаDataTable();
  819. }
  820. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  821. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  822. internal void InitVars() {
  823. this.columnНомер_записи = base.Columns["Номер записи"];
  824. this.columnНомер_читателя = base.Columns["Номер читателя"];
  825. this.columnНомер_зала = base.Columns["Номер зала"];
  826. this.columnНомер_библиотекаря = base.Columns["Номер библиотекаря"];
  827. this.columnНомер_книги = base.Columns["Номер книги"];
  828. }
  829. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  830. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  831. private void InitClass() {
  832. this.columnНомер_записи = new global::System.Data.DataColumn("Номер записи", typeof(int), null, global::System.Data.MappingType.Element);
  833. base.Columns.Add(this.columnНомер_записи);
  834. this.columnНомер_читателя = new global::System.Data.DataColumn("Номер читателя", typeof(int), null, global::System.Data.MappingType.Element);
  835. base.Columns.Add(this.columnНомер_читателя);
  836. this.columnНомер_зала = new global::System.Data.DataColumn("Номер зала", typeof(int), null, global::System.Data.MappingType.Element);
  837. base.Columns.Add(this.columnНомер_зала);
  838. this.columnНомер_библиотекаря = new global::System.Data.DataColumn("Номер библиотекаря", typeof(int), null, global::System.Data.MappingType.Element);
  839. base.Columns.Add(this.columnНомер_библиотекаря);
  840. this.columnНомер_книги = new global::System.Data.DataColumn("Номер книги", typeof(int), null, global::System.Data.MappingType.Element);
  841. base.Columns.Add(this.columnНомер_книги);
  842. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  843. this.columnНомер_записи}, true));
  844. this.columnНомер_записи.AutoIncrement = true;
  845. this.columnНомер_записи.AutoIncrementSeed = -1;
  846. this.columnНомер_записи.AutoIncrementStep = -1;
  847. this.columnНомер_записи.AllowDBNull = false;
  848. this.columnНомер_записи.ReadOnly = true;
  849. this.columnНомер_записи.Unique = true;
  850. this.columnНомер_читателя.AllowDBNull = false;
  851. this.columnНомер_зала.AllowDBNull = false;
  852. this.columnНомер_библиотекаря.AllowDBNull = false;
  853. this.columnНомер_книги.AllowDBNull = false;
  854. }
  855. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  856. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  857. public ВыдачаRow NewВыдачаRow() {
  858. return ((ВыдачаRow)(this.NewRow()));
  859. }
  860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  862. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  863. return new ВыдачаRow(builder);
  864. }
  865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  867. protected override global::System.Type GetRowType() {
  868. return typeof(ВыдачаRow);
  869. }
  870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  872. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  873. base.OnRowChanged(e);
  874. if ((this.ВыдачаRowChanged != null)) {
  875. this.ВыдачаRowChanged(this, new ВыдачаRowChangeEvent(((ВыдачаRow)(e.Row)), e.Action));
  876. }
  877. }
  878. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  879. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  880. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  881. base.OnRowChanging(e);
  882. if ((this.ВыдачаRowChanging != null)) {
  883. this.ВыдачаRowChanging(this, new ВыдачаRowChangeEvent(((ВыдачаRow)(e.Row)), e.Action));
  884. }
  885. }
  886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  888. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  889. base.OnRowDeleted(e);
  890. if ((this.ВыдачаRowDeleted != null)) {
  891. this.ВыдачаRowDeleted(this, new ВыдачаRowChangeEvent(((ВыдачаRow)(e.Row)), e.Action));
  892. }
  893. }
  894. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  895. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  896. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  897. base.OnRowDeleting(e);
  898. if ((this.ВыдачаRowDeleting != null)) {
  899. this.ВыдачаRowDeleting(this, new ВыдачаRowChangeEvent(((ВыдачаRow)(e.Row)), e.Action));
  900. }
  901. }
  902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  904. public void RemoveВыдачаRow(ВыдачаRow row) {
  905. this.Rows.Remove(row);
  906. }
  907. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  908. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  909. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  910. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  911. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  912. _LesnichukEvgenuiAleksandrovich_19DataSet ds = new _LesnichukEvgenuiAleksandrovich_19DataSet();
  913. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  914. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  915. any1.MinOccurs = new decimal(0);
  916. any1.MaxOccurs = decimal.MaxValue;
  917. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  918. sequence.Items.Add(any1);
  919. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  920. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  921. any2.MinOccurs = new decimal(1);
  922. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  923. sequence.Items.Add(any2);
  924. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  925. attribute1.Name = "namespace";
  926. attribute1.FixedValue = ds.Namespace;
  927. type.Attributes.Add(attribute1);
  928. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  929. attribute2.Name = "tableTypeName";
  930. attribute2.FixedValue = "ВыдачаDataTable";
  931. type.Attributes.Add(attribute2);
  932. type.Particle = sequence;
  933. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  934. if (xs.Contains(dsSchema.TargetNamespace)) {
  935. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  936. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  937. try {
  938. global::System.Xml.Schema.XmlSchema schema = null;
  939. dsSchema.Write(s1);
  940. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  941. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  942. s2.SetLength(0);
  943. schema.Write(s2);
  944. if ((s1.Length == s2.Length)) {
  945. s1.Position = 0;
  946. s2.Position = 0;
  947. for (; ((s1.Position != s1.Length)
  948. && (s1.ReadByte() == s2.ReadByte())); ) {
  949. ;
  950. }
  951. if ((s1.Position == s1.Length)) {
  952. return type;
  953. }
  954. }
  955. }
  956. }
  957. finally {
  958. if ((s1 != null)) {
  959. s1.Close();
  960. }
  961. if ((s2 != null)) {
  962. s2.Close();
  963. }
  964. }
  965. }
  966. xs.Add(dsSchema);
  967. return type;
  968. }
  969. }
  970. /// <summary>
  971. ///Represents the strongly named DataTable class.
  972. ///</summary>
  973. [global::System.Serializable()]
  974. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  975. public partial class ЗалDataTable : global::System.Data.TypedTableBase<ЗалRow> {
  976. private global::System.Data.DataColumn columnНомер_зала;
  977. private global::System.Data.DataColumn columnНазвание;
  978. private global::System.Data.DataColumn columnПримечание;
  979. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  980. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  981. public ЗалDataTable() {
  982. this.TableName = "Зал";
  983. this.BeginInit();
  984. this.InitClass();
  985. this.EndInit();
  986. }
  987. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  988. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  989. internal ЗалDataTable(global::System.Data.DataTable table) {
  990. this.TableName = table.TableName;
  991. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  992. this.CaseSensitive = table.CaseSensitive;
  993. }
  994. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  995. this.Locale = table.Locale;
  996. }
  997. if ((table.Namespace != table.DataSet.Namespace)) {
  998. this.Namespace = table.Namespace;
  999. }
  1000. this.Prefix = table.Prefix;
  1001. this.MinimumCapacity = table.MinimumCapacity;
  1002. }
  1003. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1004. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1005. protected ЗалDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1006. base(info, context) {
  1007. this.InitVars();
  1008. }
  1009. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1010. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1011. public global::System.Data.DataColumn Номер_залаColumn {
  1012. get {
  1013. return this.columnНомер_зала;
  1014. }
  1015. }
  1016. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1017. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1018. public global::System.Data.DataColumn НазваниеColumn {
  1019. get {
  1020. return this.columnНазвание;
  1021. }
  1022. }
  1023. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1024. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1025. public global::System.Data.DataColumn ПримечаниеColumn {
  1026. get {
  1027. return this.columnПримечание;
  1028. }
  1029. }
  1030. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1031. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1032. [global::System.ComponentModel.Browsable(false)]
  1033. public int Count {
  1034. get {
  1035. return this.Rows.Count;
  1036. }
  1037. }
  1038. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1039. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1040. public ЗалRow this[int index] {
  1041. get {
  1042. return ((ЗалRow)(this.Rows[index]));
  1043. }
  1044. }
  1045. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1046. public event ЗалRowChangeEventHandler ЗалRowChanging;
  1047. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1048. public event ЗалRowChangeEventHandler ЗалRowChanged;
  1049. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1050. public event ЗалRowChangeEventHandler ЗалRowDeleting;
  1051. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1052. public event ЗалRowChangeEventHandler ЗалRowDeleted;
  1053. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1054. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1055. public void AddЗалRow(ЗалRow row) {
  1056. this.Rows.Add(row);
  1057. }
  1058. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1059. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1060. public ЗалRow AddЗалRow(string Название, string Примечание) {
  1061. ЗалRow rowЗалRow = ((ЗалRow)(this.NewRow()));
  1062. object[] columnValuesArray = new object[] {
  1063. null,
  1064. Название,
  1065. Примечание};
  1066. rowЗалRow.ItemArray = columnValuesArray;
  1067. this.Rows.Add(rowЗалRow);
  1068. return rowЗалRow;
  1069. }
  1070. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1071. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1072. public ЗалRow FindByНомер_зала(int Номер_зала) {
  1073. return ((ЗалRow)(this.Rows.Find(new object[] {
  1074. Номер_зала})));
  1075. }
  1076. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1077. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1078. public override global::System.Data.DataTable Clone() {
  1079. ЗалDataTable cln = ((ЗалDataTable)(base.Clone()));
  1080. cln.InitVars();
  1081. return cln;
  1082. }
  1083. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1084. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1085. protected override global::System.Data.DataTable CreateInstance() {
  1086. return new ЗалDataTable();
  1087. }
  1088. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1089. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1090. internal void InitVars() {
  1091. this.columnНомер_зала = base.Columns["Номер зала"];
  1092. this.columnНазвание = base.Columns["Название"];
  1093. this.columnПримечание = base.Columns["Примечание"];
  1094. }
  1095. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1096. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1097. private void InitClass() {
  1098. this.columnНомер_зала = new global::System.Data.DataColumn("Номер зала", typeof(int), null, global::System.Data.MappingType.Element);
  1099. base.Columns.Add(this.columnНомер_зала);
  1100. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  1101. base.Columns.Add(this.columnНазвание);
  1102. this.columnПримечание = new global::System.Data.DataColumn("Примечание", typeof(string), null, global::System.Data.MappingType.Element);
  1103. base.Columns.Add(this.columnПримечание);
  1104. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1105. this.columnНомер_зала}, true));
  1106. this.columnНомер_зала.AutoIncrement = true;
  1107. this.columnНомер_зала.AutoIncrementSeed = -1;
  1108. this.columnНомер_зала.AutoIncrementStep = -1;
  1109. this.columnНомер_зала.AllowDBNull = false;
  1110. this.columnНомер_зала.ReadOnly = true;
  1111. this.columnНомер_зала.Unique = true;
  1112. this.columnНазвание.AllowDBNull = false;
  1113. this.columnНазвание.MaxLength = 2147483647;
  1114. this.columnПримечание.MaxLength = 2147483647;
  1115. }
  1116. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1117. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1118. public ЗалRow NewЗалRow() {
  1119. return ((ЗалRow)(this.NewRow()));
  1120. }
  1121. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1122. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1123. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1124. return new ЗалRow(builder);
  1125. }
  1126. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1127. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1128. protected override global::System.Type GetRowType() {
  1129. return typeof(ЗалRow);
  1130. }
  1131. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1132. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1133. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1134. base.OnRowChanged(e);
  1135. if ((this.ЗалRowChanged != null)) {
  1136. this.ЗалRowChanged(this, new ЗалRowChangeEvent(((ЗалRow)(e.Row)), e.Action));
  1137. }
  1138. }
  1139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1141. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1142. base.OnRowChanging(e);
  1143. if ((this.ЗалRowChanging != null)) {
  1144. this.ЗалRowChanging(this, new ЗалRowChangeEvent(((ЗалRow)(e.Row)), e.Action));
  1145. }
  1146. }
  1147. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1148. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1149. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1150. base.OnRowDeleted(e);
  1151. if ((this.ЗалRowDeleted != null)) {
  1152. this.ЗалRowDeleted(this, new ЗалRowChangeEvent(((ЗалRow)(e.Row)), e.Action));
  1153. }
  1154. }
  1155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1157. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1158. base.OnRowDeleting(e);
  1159. if ((this.ЗалRowDeleting != null)) {
  1160. this.ЗалRowDeleting(this, new ЗалRowChangeEvent(((ЗалRow)(e.Row)), e.Action));
  1161. }
  1162. }
  1163. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1164. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1165. public void RemoveЗалRow(ЗалRow row) {
  1166. this.Rows.Remove(row);
  1167. }
  1168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1170. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1171. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1172. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1173. _LesnichukEvgenuiAleksandrovich_19DataSet ds = new _LesnichukEvgenuiAleksandrovich_19DataSet();
  1174. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1175. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1176. any1.MinOccurs = new decimal(0);
  1177. any1.MaxOccurs = decimal.MaxValue;
  1178. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1179. sequence.Items.Add(any1);
  1180. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1181. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1182. any2.MinOccurs = new decimal(1);
  1183. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1184. sequence.Items.Add(any2);
  1185. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1186. attribute1.Name = "namespace";
  1187. attribute1.FixedValue = ds.Namespace;
  1188. type.Attributes.Add(attribute1);
  1189. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1190. attribute2.Name = "tableTypeName";
  1191. attribute2.FixedValue = "ЗалDataTable";
  1192. type.Attributes.Add(attribute2);
  1193. type.Particle = sequence;
  1194. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1195. if (xs.Contains(dsSchema.TargetNamespace)) {
  1196. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1197. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1198. try {
  1199. global::System.Xml.Schema.XmlSchema schema = null;
  1200. dsSchema.Write(s1);
  1201. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1202. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1203. s2.SetLength(0);
  1204. schema.Write(s2);
  1205. if ((s1.Length == s2.Length)) {
  1206. s1.Position = 0;
  1207. s2.Position = 0;
  1208. for (; ((s1.Position != s1.Length)
  1209. && (s1.ReadByte() == s2.ReadByte())); ) {
  1210. ;
  1211. }
  1212. if ((s1.Position == s1.Length)) {
  1213. return type;
  1214. }
  1215. }
  1216. }
  1217. }
  1218. finally {
  1219. if ((s1 != null)) {
  1220. s1.Close();
  1221. }
  1222. if ((s2 != null)) {
  1223. s2.Close();
  1224. }
  1225. }
  1226. }
  1227. xs.Add(dsSchema);
  1228. return type;
  1229. }
  1230. }
  1231. /// <summary>
  1232. ///Represents the strongly named DataTable class.
  1233. ///</summary>
  1234. [global::System.Serializable()]
  1235. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1236. public partial class КнигаDataTable : global::System.Data.TypedTableBase<КнигаRow> {
  1237. private global::System.Data.DataColumn columnШифр_книги;
  1238. private global::System.Data.DataColumn columnНазвание;
  1239. private global::System.Data.DataColumn columnКоличество_страниц;
  1240. private global::System.Data.DataColumn columnАвтор;
  1241. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1242. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1243. public КнигаDataTable() {
  1244. this.TableName = "Книга";
  1245. this.BeginInit();
  1246. this.InitClass();
  1247. this.EndInit();
  1248. }
  1249. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1250. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1251. internal КнигаDataTable(global::System.Data.DataTable table) {
  1252. this.TableName = table.TableName;
  1253. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1254. this.CaseSensitive = table.CaseSensitive;
  1255. }
  1256. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1257. this.Locale = table.Locale;
  1258. }
  1259. if ((table.Namespace != table.DataSet.Namespace)) {
  1260. this.Namespace = table.Namespace;
  1261. }
  1262. this.Prefix = table.Prefix;
  1263. this.MinimumCapacity = table.MinimumCapacity;
  1264. }
  1265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1267. protected КнигаDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1268. base(info, context) {
  1269. this.InitVars();
  1270. }
  1271. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1272. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1273. public global::System.Data.DataColumn Шифр_книгиColumn {
  1274. get {
  1275. return this.columnШифр_книги;
  1276. }
  1277. }
  1278. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1279. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1280. public global::System.Data.DataColumn НазваниеColumn {
  1281. get {
  1282. return this.columnНазвание;
  1283. }
  1284. }
  1285. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1286. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1287. public global::System.Data.DataColumn Количество_страницColumn {
  1288. get {
  1289. return this.columnКоличество_страниц;
  1290. }
  1291. }
  1292. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1293. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1294. public global::System.Data.DataColumn АвторColumn {
  1295. get {
  1296. return this.columnАвтор;
  1297. }
  1298. }
  1299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1301. [global::System.ComponentModel.Browsable(false)]
  1302. public int Count {
  1303. get {
  1304. return this.Rows.Count;
  1305. }
  1306. }
  1307. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1308. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1309. public КнигаRow this[int index] {
  1310. get {
  1311. return ((КнигаRow)(this.Rows[index]));
  1312. }
  1313. }
  1314. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1315. public event КнигаRowChangeEventHandler КнигаRowChanging;
  1316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1317. public event КнигаRowChangeEventHandler КнигаRowChanged;
  1318. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1319. public event КнигаRowChangeEventHandler КнигаRowDeleting;
  1320. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1321. public event КнигаRowChangeEventHandler КнигаRowDeleted;
  1322. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1323. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1324. public void AddКнигаRow(КнигаRow row) {
  1325. this.Rows.Add(row);
  1326. }
  1327. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1328. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1329. public КнигаRow AddКнигаRow(string Название, int Количество_страниц, string Автор) {
  1330. КнигаRow rowКнигаRow = ((КнигаRow)(this.NewRow()));
  1331. object[] columnValuesArray = new object[] {
  1332. null,
  1333. Название,
  1334. Количество_страниц,
  1335. Автор};
  1336. rowКнигаRow.ItemArray = columnValuesArray;
  1337. this.Rows.Add(rowКнигаRow);
  1338. return rowКнигаRow;
  1339. }
  1340. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1341. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1342. public КнигаRow FindByШифр_книги(int Шифр_книги) {
  1343. return ((КнигаRow)(this.Rows.Find(new object[] {
  1344. Шифр_книги})));
  1345. }
  1346. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1347. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1348. public override global::System.Data.DataTable Clone() {
  1349. КнигаDataTable cln = ((КнигаDataTable)(base.Clone()));
  1350. cln.InitVars();
  1351. return cln;
  1352. }
  1353. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1354. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1355. protected override global::System.Data.DataTable CreateInstance() {
  1356. return new КнигаDataTable();
  1357. }
  1358. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1359. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1360. internal void InitVars() {
  1361. this.columnШифр_книги = base.Columns["Шифр книги"];
  1362. this.columnНазвание = base.Columns["Название"];
  1363. this.columnКоличество_страниц = base.Columns["Количество страниц"];
  1364. this.columnАвтор = base.Columns["Автор"];
  1365. }
  1366. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1367. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1368. private void InitClass() {
  1369. this.columnШифр_книги = new global::System.Data.DataColumn("Шифр книги", typeof(int), null, global::System.Data.MappingType.Element);
  1370. base.Columns.Add(this.columnШифр_книги);
  1371. this.columnНазвание = new global::System.Data.DataColumn("Название", typeof(string), null, global::System.Data.MappingType.Element);
  1372. base.Columns.Add(this.columnНазвание);
  1373. this.columnКоличество_страниц = new global::System.Data.DataColumn("Количество страниц", typeof(int), null, global::System.Data.MappingType.Element);
  1374. base.Columns.Add(this.columnКоличество_страниц);
  1375. this.columnАвтор = new global::System.Data.DataColumn("Автор", typeof(string), null, global::System.Data.MappingType.Element);
  1376. base.Columns.Add(this.columnАвтор);
  1377. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1378. this.columnШифр_книги}, true));
  1379. this.columnШифр_книги.AutoIncrement = true;
  1380. this.columnШифр_книги.AutoIncrementSeed = -1;
  1381. this.columnШифр_книги.AutoIncrementStep = -1;
  1382. this.columnШифр_книги.AllowDBNull = false;
  1383. this.columnШифр_книги.ReadOnly = true;
  1384. this.columnШифр_книги.Unique = true;
  1385. this.columnНазвание.AllowDBNull = false;
  1386. this.columnНазвание.MaxLength = 2147483647;
  1387. this.columnКоличество_страниц.AllowDBNull = false;
  1388. this.columnАвтор.AllowDBNull = false;
  1389. this.columnАвтор.MaxLength = 2147483647;
  1390. }
  1391. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1392. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1393. public КнигаRow NewКнигаRow() {
  1394. return ((КнигаRow)(this.NewRow()));
  1395. }
  1396. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1397. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1398. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1399. return new КнигаRow(builder);
  1400. }
  1401. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1402. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1403. protected override global::System.Type GetRowType() {
  1404. return typeof(КнигаRow);
  1405. }
  1406. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1407. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1408. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1409. base.OnRowChanged(e);
  1410. if ((this.КнигаRowChanged != null)) {
  1411. this.КнигаRowChanged(this, new КнигаRowChangeEvent(((КнигаRow)(e.Row)), e.Action));
  1412. }
  1413. }
  1414. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1415. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1416. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1417. base.OnRowChanging(e);
  1418. if ((this.КнигаRowChanging != null)) {
  1419. this.КнигаRowChanging(this, new КнигаRowChangeEvent(((КнигаRow)(e.Row)), e.Action));
  1420. }
  1421. }
  1422. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1423. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1424. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1425. base.OnRowDeleted(e);
  1426. if ((this.КнигаRowDeleted != null)) {
  1427. this.КнигаRowDeleted(this, new КнигаRowChangeEvent(((КнигаRow)(e.Row)), e.Action));
  1428. }
  1429. }
  1430. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1431. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1432. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1433. base.OnRowDeleting(e);
  1434. if ((this.КнигаRowDeleting != null)) {
  1435. this.КнигаRowDeleting(this, new КнигаRowChangeEvent(((КнигаRow)(e.Row)), e.Action));
  1436. }
  1437. }
  1438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1440. public void RemoveКнигаRow(КнигаRow row) {
  1441. this.Rows.Remove(row);
  1442. }
  1443. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1444. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1445. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1446. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1447. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1448. _LesnichukEvgenuiAleksandrovich_19DataSet ds = new _LesnichukEvgenuiAleksandrovich_19DataSet();
  1449. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1450. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1451. any1.MinOccurs = new decimal(0);
  1452. any1.MaxOccurs = decimal.MaxValue;
  1453. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1454. sequence.Items.Add(any1);
  1455. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1456. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1457. any2.MinOccurs = new decimal(1);
  1458. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1459. sequence.Items.Add(any2);
  1460. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1461. attribute1.Name = "namespace";
  1462. attribute1.FixedValue = ds.Namespace;
  1463. type.Attributes.Add(attribute1);
  1464. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1465. attribute2.Name = "tableTypeName";
  1466. attribute2.FixedValue = "КнигаDataTable";
  1467. type.Attributes.Add(attribute2);
  1468. type.Particle = sequence;
  1469. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1470. if (xs.Contains(dsSchema.TargetNamespace)) {
  1471. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1472. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1473. try {
  1474. global::System.Xml.Schema.XmlSchema schema = null;
  1475. dsSchema.Write(s1);
  1476. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1477. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1478. s2.SetLength(0);
  1479. schema.Write(s2);
  1480. if ((s1.Length == s2.Length)) {
  1481. s1.Position = 0;
  1482. s2.Position = 0;
  1483. for (; ((s1.Position != s1.Length)
  1484. && (s1.ReadByte() == s2.ReadByte())); ) {
  1485. ;
  1486. }
  1487. if ((s1.Position == s1.Length)) {
  1488. return type;
  1489. }
  1490. }
  1491. }
  1492. }
  1493. finally {
  1494. if ((s1 != null)) {
  1495. s1.Close();
  1496. }
  1497. if ((s2 != null)) {
  1498. s2.Close();
  1499. }
  1500. }
  1501. }
  1502. xs.Add(dsSchema);
  1503. return type;
  1504. }
  1505. }
  1506. /// <summary>
  1507. ///Represents the strongly named DataTable class.
  1508. ///</summary>
  1509. [global::System.Serializable()]
  1510. [global::System.Xml.Serialization.XmlSchemaProviderAttribute("GetTypedTableSchema")]
  1511. public partial class ЧитательDataTable : global::System.Data.TypedTableBase<ЧитательRow> {
  1512. private global::System.Data.DataColumn columnНомер_читателя;
  1513. private global::System.Data.DataColumn columnФамилия;
  1514. private global::System.Data.DataColumn columnИмя;
  1515. private global::System.Data.DataColumn columnОтчество;
  1516. private global::System.Data.DataColumn columnАдрес;
  1517. private global::System.Data.DataColumn columnТелефон;
  1518. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1519. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1520. public ЧитательDataTable() {
  1521. this.TableName = "Читатель";
  1522. this.BeginInit();
  1523. this.InitClass();
  1524. this.EndInit();
  1525. }
  1526. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1527. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1528. internal ЧитательDataTable(global::System.Data.DataTable table) {
  1529. this.TableName = table.TableName;
  1530. if ((table.CaseSensitive != table.DataSet.CaseSensitive)) {
  1531. this.CaseSensitive = table.CaseSensitive;
  1532. }
  1533. if ((table.Locale.ToString() != table.DataSet.Locale.ToString())) {
  1534. this.Locale = table.Locale;
  1535. }
  1536. if ((table.Namespace != table.DataSet.Namespace)) {
  1537. this.Namespace = table.Namespace;
  1538. }
  1539. this.Prefix = table.Prefix;
  1540. this.MinimumCapacity = table.MinimumCapacity;
  1541. }
  1542. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1543. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1544. protected ЧитательDataTable(global::System.Runtime.Serialization.SerializationInfo info, global::System.Runtime.Serialization.StreamingContext context) :
  1545. base(info, context) {
  1546. this.InitVars();
  1547. }
  1548. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1549. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1550. public global::System.Data.DataColumn Номер_читателяColumn {
  1551. get {
  1552. return this.columnНомер_читателя;
  1553. }
  1554. }
  1555. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1556. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1557. public global::System.Data.DataColumn ФамилияColumn {
  1558. get {
  1559. return this.columnФамилия;
  1560. }
  1561. }
  1562. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1563. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1564. public global::System.Data.DataColumn ИмяColumn {
  1565. get {
  1566. return this.columnИмя;
  1567. }
  1568. }
  1569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1571. public global::System.Data.DataColumn ОтчествоColumn {
  1572. get {
  1573. return this.columnОтчество;
  1574. }
  1575. }
  1576. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1577. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1578. public global::System.Data.DataColumn АдресColumn {
  1579. get {
  1580. return this.columnАдрес;
  1581. }
  1582. }
  1583. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1584. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1585. public global::System.Data.DataColumn ТелефонColumn {
  1586. get {
  1587. return this.columnТелефон;
  1588. }
  1589. }
  1590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1592. [global::System.ComponentModel.Browsable(false)]
  1593. public int Count {
  1594. get {
  1595. return this.Rows.Count;
  1596. }
  1597. }
  1598. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1599. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1600. public ЧитательRow this[int index] {
  1601. get {
  1602. return ((ЧитательRow)(this.Rows[index]));
  1603. }
  1604. }
  1605. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1606. public event ЧитательRowChangeEventHandler ЧитательRowChanging;
  1607. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1608. public event ЧитательRowChangeEventHandler ЧитательRowChanged;
  1609. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1610. public event ЧитательRowChangeEventHandler ЧитательRowDeleting;
  1611. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1612. public event ЧитательRowChangeEventHandler ЧитательRowDeleted;
  1613. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1614. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1615. public void AddЧитательRow(ЧитательRow row) {
  1616. this.Rows.Add(row);
  1617. }
  1618. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1619. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1620. public ЧитательRow AddЧитательRow(int Номер_читателя, string Фамилия, string Имя, string Отчество, string Адрес, string Телефон) {
  1621. ЧитательRow rowЧитательRow = ((ЧитательRow)(this.NewRow()));
  1622. object[] columnValuesArray = new object[] {
  1623. Номер_читателя,
  1624. Фамилия,
  1625. Имя,
  1626. Отчество,
  1627. Адрес,
  1628. Телефон};
  1629. rowЧитательRow.ItemArray = columnValuesArray;
  1630. this.Rows.Add(rowЧитательRow);
  1631. return rowЧитательRow;
  1632. }
  1633. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1634. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1635. public ЧитательRow FindByНомер_читателя(int Номер_читателя) {
  1636. return ((ЧитательRow)(this.Rows.Find(new object[] {
  1637. Номер_читателя})));
  1638. }
  1639. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1640. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1641. public override global::System.Data.DataTable Clone() {
  1642. ЧитательDataTable cln = ((ЧитательDataTable)(base.Clone()));
  1643. cln.InitVars();
  1644. return cln;
  1645. }
  1646. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1647. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1648. protected override global::System.Data.DataTable CreateInstance() {
  1649. return new ЧитательDataTable();
  1650. }
  1651. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1652. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1653. internal void InitVars() {
  1654. this.columnНомер_читателя = base.Columns["Номер читателя"];
  1655. this.columnФамилия = base.Columns["Фамилия"];
  1656. this.columnИмя = base.Columns["Имя"];
  1657. this.columnОтчество = base.Columns["Отчество"];
  1658. this.columnАдрес = base.Columns["Адрес"];
  1659. this.columnТелефон = base.Columns["Телефон"];
  1660. }
  1661. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1662. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1663. private void InitClass() {
  1664. this.columnНомер_читателя = new global::System.Data.DataColumn("Номер читателя", typeof(int), null, global::System.Data.MappingType.Element);
  1665. base.Columns.Add(this.columnНомер_читателя);
  1666. this.columnФамилия = new global::System.Data.DataColumn("Фамилия", typeof(string), null, global::System.Data.MappingType.Element);
  1667. base.Columns.Add(this.columnФамилия);
  1668. this.columnИмя = new global::System.Data.DataColumn("Имя", typeof(string), null, global::System.Data.MappingType.Element);
  1669. base.Columns.Add(this.columnИмя);
  1670. this.columnОтчество = new global::System.Data.DataColumn("Отчество", typeof(string), null, global::System.Data.MappingType.Element);
  1671. base.Columns.Add(this.columnОтчество);
  1672. this.columnАдрес = new global::System.Data.DataColumn("Адрес", typeof(string), null, global::System.Data.MappingType.Element);
  1673. base.Columns.Add(this.columnАдрес);
  1674. this.columnТелефон = new global::System.Data.DataColumn("Телефон", typeof(string), null, global::System.Data.MappingType.Element);
  1675. base.Columns.Add(this.columnТелефон);
  1676. this.Constraints.Add(new global::System.Data.UniqueConstraint("Constraint1", new global::System.Data.DataColumn[] {
  1677. this.columnНомер_читателя}, true));
  1678. this.columnНомер_читателя.AllowDBNull = false;
  1679. this.columnНомер_читателя.Unique = true;
  1680. this.columnФамилия.AllowDBNull = false;
  1681. this.columnФамилия.MaxLength = 2147483647;
  1682. this.columnИмя.AllowDBNull = false;
  1683. this.columnИмя.MaxLength = 2147483647;
  1684. this.columnОтчество.MaxLength = 2147483647;
  1685. this.columnАдрес.MaxLength = 2147483647;
  1686. this.columnТелефон.AllowDBNull = false;
  1687. this.columnТелефон.MaxLength = 25;
  1688. }
  1689. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1690. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1691. public ЧитательRow NewЧитательRow() {
  1692. return ((ЧитательRow)(this.NewRow()));
  1693. }
  1694. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1695. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1696. protected override global::System.Data.DataRow NewRowFromBuilder(global::System.Data.DataRowBuilder builder) {
  1697. return new ЧитательRow(builder);
  1698. }
  1699. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1700. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1701. protected override global::System.Type GetRowType() {
  1702. return typeof(ЧитательRow);
  1703. }
  1704. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1705. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1706. protected override void OnRowChanged(global::System.Data.DataRowChangeEventArgs e) {
  1707. base.OnRowChanged(e);
  1708. if ((this.ЧитательRowChanged != null)) {
  1709. this.ЧитательRowChanged(this, new ЧитательRowChangeEvent(((ЧитательRow)(e.Row)), e.Action));
  1710. }
  1711. }
  1712. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1713. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1714. protected override void OnRowChanging(global::System.Data.DataRowChangeEventArgs e) {
  1715. base.OnRowChanging(e);
  1716. if ((this.ЧитательRowChanging != null)) {
  1717. this.ЧитательRowChanging(this, new ЧитательRowChangeEvent(((ЧитательRow)(e.Row)), e.Action));
  1718. }
  1719. }
  1720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1722. protected override void OnRowDeleted(global::System.Data.DataRowChangeEventArgs e) {
  1723. base.OnRowDeleted(e);
  1724. if ((this.ЧитательRowDeleted != null)) {
  1725. this.ЧитательRowDeleted(this, new ЧитательRowChangeEvent(((ЧитательRow)(e.Row)), e.Action));
  1726. }
  1727. }
  1728. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1729. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1730. protected override void OnRowDeleting(global::System.Data.DataRowChangeEventArgs e) {
  1731. base.OnRowDeleting(e);
  1732. if ((this.ЧитательRowDeleting != null)) {
  1733. this.ЧитательRowDeleting(this, new ЧитательRowChangeEvent(((ЧитательRow)(e.Row)), e.Action));
  1734. }
  1735. }
  1736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1738. public void RemoveЧитательRow(ЧитательRow row) {
  1739. this.Rows.Remove(row);
  1740. }
  1741. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1742. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1743. public static global::System.Xml.Schema.XmlSchemaComplexType GetTypedTableSchema(global::System.Xml.Schema.XmlSchemaSet xs) {
  1744. global::System.Xml.Schema.XmlSchemaComplexType type = new global::System.Xml.Schema.XmlSchemaComplexType();
  1745. global::System.Xml.Schema.XmlSchemaSequence sequence = new global::System.Xml.Schema.XmlSchemaSequence();
  1746. _LesnichukEvgenuiAleksandrovich_19DataSet ds = new _LesnichukEvgenuiAleksandrovich_19DataSet();
  1747. global::System.Xml.Schema.XmlSchemaAny any1 = new global::System.Xml.Schema.XmlSchemaAny();
  1748. any1.Namespace = "http://www.w3.org/2001/XMLSchema";
  1749. any1.MinOccurs = new decimal(0);
  1750. any1.MaxOccurs = decimal.MaxValue;
  1751. any1.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1752. sequence.Items.Add(any1);
  1753. global::System.Xml.Schema.XmlSchemaAny any2 = new global::System.Xml.Schema.XmlSchemaAny();
  1754. any2.Namespace = "urn:schemas-microsoft-com:xml-diffgram-v1";
  1755. any2.MinOccurs = new decimal(1);
  1756. any2.ProcessContents = global::System.Xml.Schema.XmlSchemaContentProcessing.Lax;
  1757. sequence.Items.Add(any2);
  1758. global::System.Xml.Schema.XmlSchemaAttribute attribute1 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1759. attribute1.Name = "namespace";
  1760. attribute1.FixedValue = ds.Namespace;
  1761. type.Attributes.Add(attribute1);
  1762. global::System.Xml.Schema.XmlSchemaAttribute attribute2 = new global::System.Xml.Schema.XmlSchemaAttribute();
  1763. attribute2.Name = "tableTypeName";
  1764. attribute2.FixedValue = "ЧитательDataTable";
  1765. type.Attributes.Add(attribute2);
  1766. type.Particle = sequence;
  1767. global::System.Xml.Schema.XmlSchema dsSchema = ds.GetSchemaSerializable();
  1768. if (xs.Contains(dsSchema.TargetNamespace)) {
  1769. global::System.IO.MemoryStream s1 = new global::System.IO.MemoryStream();
  1770. global::System.IO.MemoryStream s2 = new global::System.IO.MemoryStream();
  1771. try {
  1772. global::System.Xml.Schema.XmlSchema schema = null;
  1773. dsSchema.Write(s1);
  1774. for (global::System.Collections.IEnumerator schemas = xs.Schemas(dsSchema.TargetNamespace).GetEnumerator(); schemas.MoveNext(); ) {
  1775. schema = ((global::System.Xml.Schema.XmlSchema)(schemas.Current));
  1776. s2.SetLength(0);
  1777. schema.Write(s2);
  1778. if ((s1.Length == s2.Length)) {
  1779. s1.Position = 0;
  1780. s2.Position = 0;
  1781. for (; ((s1.Position != s1.Length)
  1782. && (s1.ReadByte() == s2.ReadByte())); ) {
  1783. ;
  1784. }
  1785. if ((s1.Position == s1.Length)) {
  1786. return type;
  1787. }
  1788. }
  1789. }
  1790. }
  1791. finally {
  1792. if ((s1 != null)) {
  1793. s1.Close();
  1794. }
  1795. if ((s2 != null)) {
  1796. s2.Close();
  1797. }
  1798. }
  1799. }
  1800. xs.Add(dsSchema);
  1801. return type;
  1802. }
  1803. }
  1804. /// <summary>
  1805. ///Represents strongly named DataRow class.
  1806. ///</summary>
  1807. public partial class БиблиотекарьRow : global::System.Data.DataRow {
  1808. private БиблиотекарьDataTable tableБиблиотекарь;
  1809. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1810. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1811. internal БиблиотекарьRow(global::System.Data.DataRowBuilder rb) :
  1812. base(rb) {
  1813. this.tableБиблиотекарь = ((БиблиотекарьDataTable)(this.Table));
  1814. }
  1815. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1816. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1817. public int Номер_библиотекаря {
  1818. get {
  1819. return ((int)(this[this.tableБиблиотекарь.Номер_библиотекаряColumn]));
  1820. }
  1821. set {
  1822. this[this.tableБиблиотекарь.Номер_библиотекаряColumn] = value;
  1823. }
  1824. }
  1825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1827. public string Фамилия {
  1828. get {
  1829. return ((string)(this[this.tableБиблиотекарь.ФамилияColumn]));
  1830. }
  1831. set {
  1832. this[this.tableБиблиотекарь.ФамилияColumn] = value;
  1833. }
  1834. }
  1835. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1836. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1837. public string Имя {
  1838. get {
  1839. return ((string)(this[this.tableБиблиотекарь.ИмяColumn]));
  1840. }
  1841. set {
  1842. this[this.tableБиблиотекарь.ИмяColumn] = value;
  1843. }
  1844. }
  1845. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1846. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1847. public string Отчество {
  1848. get {
  1849. try {
  1850. return ((string)(this[this.tableБиблиотекарь.ОтчествоColumn]));
  1851. }
  1852. catch (global::System.InvalidCastException e) {
  1853. throw new global::System.Data.StrongTypingException("Значение для столбца \'Отчество\' в таблице \'Библиотекарь\' равно DBNull.", e);
  1854. }
  1855. }
  1856. set {
  1857. this[this.tableБиблиотекарь.ОтчествоColumn] = value;
  1858. }
  1859. }
  1860. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1861. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1862. public bool IsОтчествоNull() {
  1863. return this.IsNull(this.tableБиблиотекарь.ОтчествоColumn);
  1864. }
  1865. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1866. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1867. public void SetОтчествоNull() {
  1868. this[this.tableБиблиотекарь.ОтчествоColumn] = global::System.Convert.DBNull;
  1869. }
  1870. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1871. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1872. public ВыдачаRow[] GetВыдачаRows() {
  1873. if ((this.Table.ChildRelations["FK_Выдача_Библиотекарь"] == null)) {
  1874. return new ВыдачаRow[0];
  1875. }
  1876. else {
  1877. return ((ВыдачаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Выдача_Библиотекарь"])));
  1878. }
  1879. }
  1880. }
  1881. /// <summary>
  1882. ///Represents strongly named DataRow class.
  1883. ///</summary>
  1884. public partial class ВыдачаRow : global::System.Data.DataRow {
  1885. private ВыдачаDataTable tableВыдача;
  1886. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1887. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1888. internal ВыдачаRow(global::System.Data.DataRowBuilder rb) :
  1889. base(rb) {
  1890. this.tableВыдача = ((ВыдачаDataTable)(this.Table));
  1891. }
  1892. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1893. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1894. public int Номер_записи {
  1895. get {
  1896. return ((int)(this[this.tableВыдача.Номер_записиColumn]));
  1897. }
  1898. set {
  1899. this[this.tableВыдача.Номер_записиColumn] = value;
  1900. }
  1901. }
  1902. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1903. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1904. public int Номер_читателя {
  1905. get {
  1906. return ((int)(this[this.tableВыдача.Номер_читателяColumn]));
  1907. }
  1908. set {
  1909. this[this.tableВыдача.Номер_читателяColumn] = value;
  1910. }
  1911. }
  1912. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1913. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1914. public int Номер_зала {
  1915. get {
  1916. return ((int)(this[this.tableВыдача.Номер_залаColumn]));
  1917. }
  1918. set {
  1919. this[this.tableВыдача.Номер_залаColumn] = value;
  1920. }
  1921. }
  1922. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1923. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1924. public int Номер_библиотекаря {
  1925. get {
  1926. return ((int)(this[this.tableВыдача.Номер_библиотекаряColumn]));
  1927. }
  1928. set {
  1929. this[this.tableВыдача.Номер_библиотекаряColumn] = value;
  1930. }
  1931. }
  1932. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1933. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1934. public int Номер_книги {
  1935. get {
  1936. return ((int)(this[this.tableВыдача.Номер_книгиColumn]));
  1937. }
  1938. set {
  1939. this[this.tableВыдача.Номер_книгиColumn] = value;
  1940. }
  1941. }
  1942. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1943. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1944. public БиблиотекарьRow БиблиотекарьRow {
  1945. get {
  1946. return ((БиблиотекарьRow)(this.GetParentRow(this.Table.ParentRelations["FK_Выдача_Библиотекарь"])));
  1947. }
  1948. set {
  1949. this.SetParentRow(value, this.Table.ParentRelations["FK_Выдача_Библиотекарь"]);
  1950. }
  1951. }
  1952. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1953. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1954. public ЗалRow ЗалRow {
  1955. get {
  1956. return ((ЗалRow)(this.GetParentRow(this.Table.ParentRelations["FK_Выдача_Зал"])));
  1957. }
  1958. set {
  1959. this.SetParentRow(value, this.Table.ParentRelations["FK_Выдача_Зал"]);
  1960. }
  1961. }
  1962. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1963. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1964. public КнигаRow КнигаRow {
  1965. get {
  1966. return ((КнигаRow)(this.GetParentRow(this.Table.ParentRelations["FK_Выдача_Книга"])));
  1967. }
  1968. set {
  1969. this.SetParentRow(value, this.Table.ParentRelations["FK_Выдача_Книга"]);
  1970. }
  1971. }
  1972. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1973. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1974. public ЧитательRow ЧитательRow {
  1975. get {
  1976. return ((ЧитательRow)(this.GetParentRow(this.Table.ParentRelations["FK_Выдача_Читатель"])));
  1977. }
  1978. set {
  1979. this.SetParentRow(value, this.Table.ParentRelations["FK_Выдача_Читатель"]);
  1980. }
  1981. }
  1982. }
  1983. /// <summary>
  1984. ///Represents strongly named DataRow class.
  1985. ///</summary>
  1986. public partial class ЗалRow : global::System.Data.DataRow {
  1987. private ЗалDataTable tableЗал;
  1988. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1989. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1990. internal ЗалRow(global::System.Data.DataRowBuilder rb) :
  1991. base(rb) {
  1992. this.tableЗал = ((ЗалDataTable)(this.Table));
  1993. }
  1994. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  1995. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  1996. public int Номер_зала {
  1997. get {
  1998. return ((int)(this[this.tableЗал.Номер_залаColumn]));
  1999. }
  2000. set {
  2001. this[this.tableЗал.Номер_залаColumn] = value;
  2002. }
  2003. }
  2004. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2005. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2006. public string Название {
  2007. get {
  2008. return ((string)(this[this.tableЗал.НазваниеColumn]));
  2009. }
  2010. set {
  2011. this[this.tableЗал.НазваниеColumn] = value;
  2012. }
  2013. }
  2014. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2015. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2016. public string Примечание {
  2017. get {
  2018. try {
  2019. return ((string)(this[this.tableЗал.ПримечаниеColumn]));
  2020. }
  2021. catch (global::System.InvalidCastException e) {
  2022. throw new global::System.Data.StrongTypingException("Значение для столбца \'Примечание\' в таблице \'Зал\' равно DBNull.", e);
  2023. }
  2024. }
  2025. set {
  2026. this[this.tableЗал.ПримечаниеColumn] = value;
  2027. }
  2028. }
  2029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2031. public bool IsПримечаниеNull() {
  2032. return this.IsNull(this.tableЗал.ПримечаниеColumn);
  2033. }
  2034. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2035. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2036. public void SetПримечаниеNull() {
  2037. this[this.tableЗал.ПримечаниеColumn] = global::System.Convert.DBNull;
  2038. }
  2039. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2040. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2041. public ВыдачаRow[] GetВыдачаRows() {
  2042. if ((this.Table.ChildRelations["FK_Выдача_Зал"] == null)) {
  2043. return new ВыдачаRow[0];
  2044. }
  2045. else {
  2046. return ((ВыдачаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Выдача_Зал"])));
  2047. }
  2048. }
  2049. }
  2050. /// <summary>
  2051. ///Represents strongly named DataRow class.
  2052. ///</summary>
  2053. public partial class КнигаRow : global::System.Data.DataRow {
  2054. private КнигаDataTable tableКнига;
  2055. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2056. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2057. internal КнигаRow(global::System.Data.DataRowBuilder rb) :
  2058. base(rb) {
  2059. this.tableКнига = ((КнигаDataTable)(this.Table));
  2060. }
  2061. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2062. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2063. public int Шифр_книги {
  2064. get {
  2065. return ((int)(this[this.tableКнига.Шифр_книгиColumn]));
  2066. }
  2067. set {
  2068. this[this.tableКнига.Шифр_книгиColumn] = value;
  2069. }
  2070. }
  2071. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2072. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2073. public string Название {
  2074. get {
  2075. return ((string)(this[this.tableКнига.НазваниеColumn]));
  2076. }
  2077. set {
  2078. this[this.tableКнига.НазваниеColumn] = value;
  2079. }
  2080. }
  2081. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2082. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2083. public int Количество_страниц {
  2084. get {
  2085. return ((int)(this[this.tableКнига.Количество_страницColumn]));
  2086. }
  2087. set {
  2088. this[this.tableКнига.Количество_страницColumn] = value;
  2089. }
  2090. }
  2091. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2092. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2093. public string Автор {
  2094. get {
  2095. return ((string)(this[this.tableКнига.АвторColumn]));
  2096. }
  2097. set {
  2098. this[this.tableКнига.АвторColumn] = value;
  2099. }
  2100. }
  2101. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2102. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2103. public ВыдачаRow[] GetВыдачаRows() {
  2104. if ((this.Table.ChildRelations["FK_Выдача_Книга"] == null)) {
  2105. return new ВыдачаRow[0];
  2106. }
  2107. else {
  2108. return ((ВыдачаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Выдача_Книга"])));
  2109. }
  2110. }
  2111. }
  2112. /// <summary>
  2113. ///Represents strongly named DataRow class.
  2114. ///</summary>
  2115. public partial class ЧитательRow : global::System.Data.DataRow {
  2116. private ЧитательDataTable tableЧитатель;
  2117. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2118. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2119. internal ЧитательRow(global::System.Data.DataRowBuilder rb) :
  2120. base(rb) {
  2121. this.tableЧитатель = ((ЧитательDataTable)(this.Table));
  2122. }
  2123. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2124. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2125. public int Номер_читателя {
  2126. get {
  2127. return ((int)(this[this.tableЧитатель.Номер_читателяColumn]));
  2128. }
  2129. set {
  2130. this[this.tableЧитатель.Номер_читателяColumn] = value;
  2131. }
  2132. }
  2133. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2134. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2135. public string Фамилия {
  2136. get {
  2137. return ((string)(this[this.tableЧитатель.ФамилияColumn]));
  2138. }
  2139. set {
  2140. this[this.tableЧитатель.ФамилияColumn] = value;
  2141. }
  2142. }
  2143. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2144. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2145. public string Имя {
  2146. get {
  2147. return ((string)(this[this.tableЧитатель.ИмяColumn]));
  2148. }
  2149. set {
  2150. this[this.tableЧитатель.ИмяColumn] = value;
  2151. }
  2152. }
  2153. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2154. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2155. public string Отчество {
  2156. get {
  2157. try {
  2158. return ((string)(this[this.tableЧитатель.ОтчествоColumn]));
  2159. }
  2160. catch (global::System.InvalidCastException e) {
  2161. throw new global::System.Data.StrongTypingException("Значение для столбца \'Отчество\' в таблице \'Читатель\' равно DBNull.", e);
  2162. }
  2163. }
  2164. set {
  2165. this[this.tableЧитатель.ОтчествоColumn] = value;
  2166. }
  2167. }
  2168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2170. public string Адрес {
  2171. get {
  2172. try {
  2173. return ((string)(this[this.tableЧитатель.АдресColumn]));
  2174. }
  2175. catch (global::System.InvalidCastException e) {
  2176. throw new global::System.Data.StrongTypingException("Значение для столбца \'Адрес\' в таблице \'Читатель\' равно DBNull.", e);
  2177. }
  2178. }
  2179. set {
  2180. this[this.tableЧитатель.АдресColumn] = value;
  2181. }
  2182. }
  2183. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2184. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2185. public string Телефон {
  2186. get {
  2187. return ((string)(this[this.tableЧитатель.ТелефонColumn]));
  2188. }
  2189. set {
  2190. this[this.tableЧитатель.ТелефонColumn] = value;
  2191. }
  2192. }
  2193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2195. public bool IsОтчествоNull() {
  2196. return this.IsNull(this.tableЧитатель.ОтчествоColumn);
  2197. }
  2198. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2199. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2200. public void SetОтчествоNull() {
  2201. this[this.tableЧитатель.ОтчествоColumn] = global::System.Convert.DBNull;
  2202. }
  2203. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2204. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2205. public bool IsАдресNull() {
  2206. return this.IsNull(this.tableЧитатель.АдресColumn);
  2207. }
  2208. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2209. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2210. public void SetАдресNull() {
  2211. this[this.tableЧитатель.АдресColumn] = global::System.Convert.DBNull;
  2212. }
  2213. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2214. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2215. public ВыдачаRow[] GetВыдачаRows() {
  2216. if ((this.Table.ChildRelations["FK_Выдача_Читатель"] == null)) {
  2217. return new ВыдачаRow[0];
  2218. }
  2219. else {
  2220. return ((ВыдачаRow[])(base.GetChildRows(this.Table.ChildRelations["FK_Выдача_Читатель"])));
  2221. }
  2222. }
  2223. }
  2224. /// <summary>
  2225. ///Row event argument class
  2226. ///</summary>
  2227. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2228. public class БиблиотекарьRowChangeEvent : global::System.EventArgs {
  2229. private БиблиотекарьRow eventRow;
  2230. private global::System.Data.DataRowAction eventAction;
  2231. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2232. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2233. public БиблиотекарьRowChangeEvent(БиблиотекарьRow row, global::System.Data.DataRowAction action) {
  2234. this.eventRow = row;
  2235. this.eventAction = action;
  2236. }
  2237. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2238. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2239. public БиблиотекарьRow Row {
  2240. get {
  2241. return this.eventRow;
  2242. }
  2243. }
  2244. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2245. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2246. public global::System.Data.DataRowAction Action {
  2247. get {
  2248. return this.eventAction;
  2249. }
  2250. }
  2251. }
  2252. /// <summary>
  2253. ///Row event argument class
  2254. ///</summary>
  2255. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2256. public class ВыдачаRowChangeEvent : global::System.EventArgs {
  2257. private ВыдачаRow eventRow;
  2258. private global::System.Data.DataRowAction eventAction;
  2259. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2260. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2261. public ВыдачаRowChangeEvent(ВыдачаRow row, global::System.Data.DataRowAction action) {
  2262. this.eventRow = row;
  2263. this.eventAction = action;
  2264. }
  2265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2267. public ВыдачаRow Row {
  2268. get {
  2269. return this.eventRow;
  2270. }
  2271. }
  2272. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2273. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2274. public global::System.Data.DataRowAction Action {
  2275. get {
  2276. return this.eventAction;
  2277. }
  2278. }
  2279. }
  2280. /// <summary>
  2281. ///Row event argument class
  2282. ///</summary>
  2283. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2284. public class ЗалRowChangeEvent : global::System.EventArgs {
  2285. private ЗалRow eventRow;
  2286. private global::System.Data.DataRowAction eventAction;
  2287. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2288. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2289. public ЗалRowChangeEvent(ЗалRow row, global::System.Data.DataRowAction action) {
  2290. this.eventRow = row;
  2291. this.eventAction = action;
  2292. }
  2293. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2294. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2295. public ЗалRow Row {
  2296. get {
  2297. return this.eventRow;
  2298. }
  2299. }
  2300. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2301. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2302. public global::System.Data.DataRowAction Action {
  2303. get {
  2304. return this.eventAction;
  2305. }
  2306. }
  2307. }
  2308. /// <summary>
  2309. ///Row event argument class
  2310. ///</summary>
  2311. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2312. public class КнигаRowChangeEvent : global::System.EventArgs {
  2313. private КнигаRow eventRow;
  2314. private global::System.Data.DataRowAction eventAction;
  2315. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2316. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2317. public КнигаRowChangeEvent(КнигаRow row, global::System.Data.DataRowAction action) {
  2318. this.eventRow = row;
  2319. this.eventAction = action;
  2320. }
  2321. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2322. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2323. public КнигаRow Row {
  2324. get {
  2325. return this.eventRow;
  2326. }
  2327. }
  2328. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2329. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2330. public global::System.Data.DataRowAction Action {
  2331. get {
  2332. return this.eventAction;
  2333. }
  2334. }
  2335. }
  2336. /// <summary>
  2337. ///Row event argument class
  2338. ///</summary>
  2339. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2340. public class ЧитательRowChangeEvent : global::System.EventArgs {
  2341. private ЧитательRow eventRow;
  2342. private global::System.Data.DataRowAction eventAction;
  2343. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2344. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2345. public ЧитательRowChangeEvent(ЧитательRow row, global::System.Data.DataRowAction action) {
  2346. this.eventRow = row;
  2347. this.eventAction = action;
  2348. }
  2349. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2350. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2351. public ЧитательRow Row {
  2352. get {
  2353. return this.eventRow;
  2354. }
  2355. }
  2356. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2357. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2358. public global::System.Data.DataRowAction Action {
  2359. get {
  2360. return this.eventAction;
  2361. }
  2362. }
  2363. }
  2364. }
  2365. }
  2366. namespace LesnichukEvgenuiAleksandrovich_19._LesnichukEvgenuiAleksandrovich_19DataSetTableAdapters {
  2367. /// <summary>
  2368. ///Represents the connection and commands used to retrieve and save data.
  2369. ///</summary>
  2370. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2371. [global::System.ComponentModel.ToolboxItem(true)]
  2372. [global::System.ComponentModel.DataObjectAttribute(true)]
  2373. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2374. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2375. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2376. public partial class БиблиотекарьTableAdapter : global::System.ComponentModel.Component {
  2377. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2378. private global::System.Data.SqlClient.SqlConnection _connection;
  2379. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2380. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2381. private bool _clearBeforeFill;
  2382. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2383. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2384. public БиблиотекарьTableAdapter() {
  2385. this.ClearBeforeFill = true;
  2386. }
  2387. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2388. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2389. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2390. get {
  2391. if ((this._adapter == null)) {
  2392. this.InitAdapter();
  2393. }
  2394. return this._adapter;
  2395. }
  2396. }
  2397. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2398. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2399. internal global::System.Data.SqlClient.SqlConnection Connection {
  2400. get {
  2401. if ((this._connection == null)) {
  2402. this.InitConnection();
  2403. }
  2404. return this._connection;
  2405. }
  2406. set {
  2407. this._connection = value;
  2408. if ((this.Adapter.InsertCommand != null)) {
  2409. this.Adapter.InsertCommand.Connection = value;
  2410. }
  2411. if ((this.Adapter.DeleteCommand != null)) {
  2412. this.Adapter.DeleteCommand.Connection = value;
  2413. }
  2414. if ((this.Adapter.UpdateCommand != null)) {
  2415. this.Adapter.UpdateCommand.Connection = value;
  2416. }
  2417. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2418. if ((this.CommandCollection[i] != null)) {
  2419. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2420. }
  2421. }
  2422. }
  2423. }
  2424. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2425. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2426. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2427. get {
  2428. return this._transaction;
  2429. }
  2430. set {
  2431. this._transaction = value;
  2432. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2433. this.CommandCollection[i].Transaction = this._transaction;
  2434. }
  2435. if (((this.Adapter != null)
  2436. && (this.Adapter.DeleteCommand != null))) {
  2437. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2438. }
  2439. if (((this.Adapter != null)
  2440. && (this.Adapter.InsertCommand != null))) {
  2441. this.Adapter.InsertCommand.Transaction = this._transaction;
  2442. }
  2443. if (((this.Adapter != null)
  2444. && (this.Adapter.UpdateCommand != null))) {
  2445. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2446. }
  2447. }
  2448. }
  2449. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2450. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2451. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2452. get {
  2453. if ((this._commandCollection == null)) {
  2454. this.InitCommandCollection();
  2455. }
  2456. return this._commandCollection;
  2457. }
  2458. }
  2459. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2460. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2461. public bool ClearBeforeFill {
  2462. get {
  2463. return this._clearBeforeFill;
  2464. }
  2465. set {
  2466. this._clearBeforeFill = value;
  2467. }
  2468. }
  2469. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2470. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2471. private void InitAdapter() {
  2472. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2473. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2474. tableMapping.SourceTable = "Table";
  2475. tableMapping.DataSetTable = "Библиотекарь";
  2476. tableMapping.ColumnMappings.Add("Номер библиотекаря", "Номер библиотекаря");
  2477. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  2478. tableMapping.ColumnMappings.Add("Имя", "Имя");
  2479. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  2480. this._adapter.TableMappings.Add(tableMapping);
  2481. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  2482. this._adapter.DeleteCommand.Connection = this.Connection;
  2483. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Библиотекарь] WHERE (([Номер библиотекаря] = @Original_Номер_б" +
  2484. "иблиотекаря))";
  2485. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  2486. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_библиотекаря", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер библиотекаря", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2487. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2488. this._adapter.InsertCommand.Connection = this.Connection;
  2489. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Библиотекарь] ([Фамилия], [Имя], [Отчество]) VALUES (@Фамилия," +
  2490. " @Имя, @Отчество);\r\nSELECT [Номер библиотекаря], Фамилия, Имя, Отчество FROM Биб" +
  2491. "лиотекарь WHERE ([Номер библиотекаря] = SCOPE_IDENTITY())";
  2492. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2493. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2494. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2495. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2496. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  2497. this._adapter.UpdateCommand.Connection = this.Connection;
  2498. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Библиотекарь] SET [Фамилия] = @Фамилия, [Имя] = @Имя, [Отчество] = @Отчество WHERE (([Номер библиотекаря] = @Original_Номер_библиотекаря));
  2499. SELECT [Номер библиотекаря], Фамилия, Имя, Отчество FROM Библиотекарь WHERE ([Номер библиотекаря] = @Номер_библиотекаря)";
  2500. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  2501. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2502. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2503. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2504. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_библиотекаря", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер библиотекаря", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2505. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_библиотекаря", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Номер библиотекаря", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2506. }
  2507. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2508. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2509. private void InitConnection() {
  2510. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2511. this._connection.ConnectionString = global::LesnichukEvgenuiAleksandrovich_19.Properties.Settings.Default.LesnichukEvgenuiAleksandrovich_19ConnectionString;
  2512. }
  2513. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2514. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2515. private void InitCommandCollection() {
  2516. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2517. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2518. this._commandCollection[0].Connection = this.Connection;
  2519. this._commandCollection[0].CommandText = "SELECT [Номер библиотекаря], Фамилия, Имя, Отчество FROM dbo.Библиотекарь";
  2520. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2521. }
  2522. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2523. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2524. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2525. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2526. public virtual int Fill(_LesnichukEvgenuiAleksandrovich_19DataSet.БиблиотекарьDataTable dataTable) {
  2527. this.Adapter.SelectCommand = this.CommandCollection[0];
  2528. if ((this.ClearBeforeFill == true)) {
  2529. dataTable.Clear();
  2530. }
  2531. int returnValue = this.Adapter.Fill(dataTable);
  2532. return returnValue;
  2533. }
  2534. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2535. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2536. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2537. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2538. public virtual _LesnichukEvgenuiAleksandrovich_19DataSet.БиблиотекарьDataTable GetData() {
  2539. this.Adapter.SelectCommand = this.CommandCollection[0];
  2540. _LesnichukEvgenuiAleksandrovich_19DataSet.БиблиотекарьDataTable dataTable = new _LesnichukEvgenuiAleksandrovich_19DataSet.БиблиотекарьDataTable();
  2541. this.Adapter.Fill(dataTable);
  2542. return dataTable;
  2543. }
  2544. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2545. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2546. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2547. public virtual int Update(_LesnichukEvgenuiAleksandrovich_19DataSet.БиблиотекарьDataTable dataTable) {
  2548. return this.Adapter.Update(dataTable);
  2549. }
  2550. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2551. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2552. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2553. public virtual int Update(_LesnichukEvgenuiAleksandrovich_19DataSet dataSet) {
  2554. return this.Adapter.Update(dataSet, "Библиотекарь");
  2555. }
  2556. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2557. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2558. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2559. public virtual int Update(global::System.Data.DataRow dataRow) {
  2560. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2561. dataRow});
  2562. }
  2563. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2564. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2565. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2566. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2567. return this.Adapter.Update(dataRows);
  2568. }
  2569. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2570. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2571. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2572. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  2573. public virtual int Delete(int Original_Номер_библиотекаря) {
  2574. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Номер_библиотекаря));
  2575. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  2576. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2577. != global::System.Data.ConnectionState.Open)) {
  2578. this.Adapter.DeleteCommand.Connection.Open();
  2579. }
  2580. try {
  2581. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  2582. return returnValue;
  2583. }
  2584. finally {
  2585. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2586. this.Adapter.DeleteCommand.Connection.Close();
  2587. }
  2588. }
  2589. }
  2590. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2591. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2592. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2593. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2594. public virtual int Insert(string Фамилия, string Имя, string Отчество) {
  2595. if ((Фамилия == null)) {
  2596. throw new global::System.ArgumentNullException("Фамилия");
  2597. }
  2598. else {
  2599. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Фамилия));
  2600. }
  2601. if ((Имя == null)) {
  2602. throw new global::System.ArgumentNullException("Имя");
  2603. }
  2604. else {
  2605. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Имя));
  2606. }
  2607. if ((Отчество == null)) {
  2608. this.Adapter.InsertCommand.Parameters[2].Value = global::System.DBNull.Value;
  2609. }
  2610. else {
  2611. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Отчество));
  2612. }
  2613. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2614. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2615. != global::System.Data.ConnectionState.Open)) {
  2616. this.Adapter.InsertCommand.Connection.Open();
  2617. }
  2618. try {
  2619. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2620. return returnValue;
  2621. }
  2622. finally {
  2623. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2624. this.Adapter.InsertCommand.Connection.Close();
  2625. }
  2626. }
  2627. }
  2628. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2629. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2630. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2631. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2632. public virtual int Update(string Фамилия, string Имя, string Отчество, int Original_Номер_библиотекаря, int Номер_библиотекаря) {
  2633. if ((Фамилия == null)) {
  2634. throw new global::System.ArgumentNullException("Фамилия");
  2635. }
  2636. else {
  2637. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Фамилия));
  2638. }
  2639. if ((Имя == null)) {
  2640. throw new global::System.ArgumentNullException("Имя");
  2641. }
  2642. else {
  2643. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Имя));
  2644. }
  2645. if ((Отчество == null)) {
  2646. this.Adapter.UpdateCommand.Parameters[2].Value = global::System.DBNull.Value;
  2647. }
  2648. else {
  2649. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Отчество));
  2650. }
  2651. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_Номер_библиотекаря));
  2652. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Номер_библиотекаря));
  2653. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  2654. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2655. != global::System.Data.ConnectionState.Open)) {
  2656. this.Adapter.UpdateCommand.Connection.Open();
  2657. }
  2658. try {
  2659. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  2660. return returnValue;
  2661. }
  2662. finally {
  2663. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2664. this.Adapter.UpdateCommand.Connection.Close();
  2665. }
  2666. }
  2667. }
  2668. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2669. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2670. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2671. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2672. public virtual int Update(string Фамилия, string Имя, string Отчество, int Original_Номер_библиотекаря) {
  2673. return this.Update(Фамилия, Имя, Отчество, Original_Номер_библиотекаря, Original_Номер_библиотекаря);
  2674. }
  2675. }
  2676. /// <summary>
  2677. ///Represents the connection and commands used to retrieve and save data.
  2678. ///</summary>
  2679. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2680. [global::System.ComponentModel.ToolboxItem(true)]
  2681. [global::System.ComponentModel.DataObjectAttribute(true)]
  2682. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2683. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2684. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2685. public partial class ВыдачаTableAdapter : global::System.ComponentModel.Component {
  2686. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2687. private global::System.Data.SqlClient.SqlConnection _connection;
  2688. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2689. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2690. private bool _clearBeforeFill;
  2691. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2692. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2693. public ВыдачаTableAdapter() {
  2694. this.ClearBeforeFill = true;
  2695. }
  2696. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2697. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2698. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2699. get {
  2700. if ((this._adapter == null)) {
  2701. this.InitAdapter();
  2702. }
  2703. return this._adapter;
  2704. }
  2705. }
  2706. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2707. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2708. internal global::System.Data.SqlClient.SqlConnection Connection {
  2709. get {
  2710. if ((this._connection == null)) {
  2711. this.InitConnection();
  2712. }
  2713. return this._connection;
  2714. }
  2715. set {
  2716. this._connection = value;
  2717. if ((this.Adapter.InsertCommand != null)) {
  2718. this.Adapter.InsertCommand.Connection = value;
  2719. }
  2720. if ((this.Adapter.DeleteCommand != null)) {
  2721. this.Adapter.DeleteCommand.Connection = value;
  2722. }
  2723. if ((this.Adapter.UpdateCommand != null)) {
  2724. this.Adapter.UpdateCommand.Connection = value;
  2725. }
  2726. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2727. if ((this.CommandCollection[i] != null)) {
  2728. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  2729. }
  2730. }
  2731. }
  2732. }
  2733. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2734. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2735. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  2736. get {
  2737. return this._transaction;
  2738. }
  2739. set {
  2740. this._transaction = value;
  2741. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  2742. this.CommandCollection[i].Transaction = this._transaction;
  2743. }
  2744. if (((this.Adapter != null)
  2745. && (this.Adapter.DeleteCommand != null))) {
  2746. this.Adapter.DeleteCommand.Transaction = this._transaction;
  2747. }
  2748. if (((this.Adapter != null)
  2749. && (this.Adapter.InsertCommand != null))) {
  2750. this.Adapter.InsertCommand.Transaction = this._transaction;
  2751. }
  2752. if (((this.Adapter != null)
  2753. && (this.Adapter.UpdateCommand != null))) {
  2754. this.Adapter.UpdateCommand.Transaction = this._transaction;
  2755. }
  2756. }
  2757. }
  2758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2760. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  2761. get {
  2762. if ((this._commandCollection == null)) {
  2763. this.InitCommandCollection();
  2764. }
  2765. return this._commandCollection;
  2766. }
  2767. }
  2768. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2769. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2770. public bool ClearBeforeFill {
  2771. get {
  2772. return this._clearBeforeFill;
  2773. }
  2774. set {
  2775. this._clearBeforeFill = value;
  2776. }
  2777. }
  2778. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2779. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2780. private void InitAdapter() {
  2781. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  2782. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  2783. tableMapping.SourceTable = "Table";
  2784. tableMapping.DataSetTable = "Выдача";
  2785. tableMapping.ColumnMappings.Add("Номер записи", "Номер записи");
  2786. tableMapping.ColumnMappings.Add("Номер читателя", "Номер читателя");
  2787. tableMapping.ColumnMappings.Add("Номер зала", "Номер зала");
  2788. tableMapping.ColumnMappings.Add("Номер библиотекаря", "Номер библиотекаря");
  2789. tableMapping.ColumnMappings.Add("Номер книги", "Номер книги");
  2790. this._adapter.TableMappings.Add(tableMapping);
  2791. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  2792. this._adapter.DeleteCommand.Connection = this.Connection;
  2793. this._adapter.DeleteCommand.CommandText = @"DELETE FROM [dbo].[Выдача] WHERE (([Номер записи] = @Original_Номер_записи) AND ([Номер читателя] = @Original_Номер_читателя) AND ([Номер зала] = @Original_Номер_зала) AND ([Номер библиотекаря] = @Original_Номер_библиотекаря) AND ([Номер книги] = @Original_Номер_книги))";
  2794. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  2795. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2796. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_читателя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер читателя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2797. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_зала", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер зала", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2798. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_библиотекаря", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер библиотекаря", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2799. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_книги", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер книги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2800. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  2801. this._adapter.InsertCommand.Connection = this.Connection;
  2802. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Выдача] ([Номер читателя], [Номер зала], [Номер библиотекаря], [Номер книги]) VALUES (@Номер_читателя, @Номер_зала, @Номер_библиотекаря, @Номер_книги);
  2803. SELECT [Номер записи], [Номер читателя], [Номер зала], [Номер библиотекаря], [Номер книги] FROM Выдача WHERE ([Номер записи] = SCOPE_IDENTITY())";
  2804. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  2805. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_читателя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер читателя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2806. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_зала", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер зала", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2807. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_библиотекаря", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер библиотекаря", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2808. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_книги", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер книги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2809. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  2810. this._adapter.UpdateCommand.Connection = this.Connection;
  2811. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Выдача] SET [Номер читателя] = @Номер_читателя, [Номер зала] = @Номер_зала, [Номер библиотекаря] = @Номер_библиотекаря, [Номер книги] = @Номер_книги WHERE (([Номер записи] = @Original_Номер_записи) AND ([Номер читателя] = @Original_Номер_читателя) AND ([Номер зала] = @Original_Номер_зала) AND ([Номер библиотекаря] = @Original_Номер_библиотекаря) AND ([Номер книги] = @Original_Номер_книги));
  2812. SELECT [Номер записи], [Номер читателя], [Номер зала], [Номер библиотекаря], [Номер книги] FROM Выдача WHERE ([Номер записи] = @Номер_записи)";
  2813. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  2814. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_читателя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер читателя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2815. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_зала", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер зала", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2816. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_библиотекаря", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер библиотекаря", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2817. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_книги", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер книги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2818. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_записи", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2819. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_читателя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер читателя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2820. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_зала", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер зала", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2821. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_библиотекаря", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер библиотекаря", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2822. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_книги", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер книги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  2823. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_записи", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Номер записи", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  2824. }
  2825. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2826. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2827. private void InitConnection() {
  2828. this._connection = new global::System.Data.SqlClient.SqlConnection();
  2829. this._connection.ConnectionString = global::LesnichukEvgenuiAleksandrovich_19.Properties.Settings.Default.LesnichukEvgenuiAleksandrovich_19ConnectionString;
  2830. }
  2831. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2832. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2833. private void InitCommandCollection() {
  2834. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  2835. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  2836. this._commandCollection[0].Connection = this.Connection;
  2837. this._commandCollection[0].CommandText = "SELECT [Номер записи], [Номер читателя], [Номер зала], [Номер библиотекаря], [Ном" +
  2838. "ер книги] FROM dbo.Выдача";
  2839. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  2840. }
  2841. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2842. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2843. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2844. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  2845. public virtual int Fill(_LesnichukEvgenuiAleksandrovich_19DataSet.ВыдачаDataTable dataTable) {
  2846. this.Adapter.SelectCommand = this.CommandCollection[0];
  2847. if ((this.ClearBeforeFill == true)) {
  2848. dataTable.Clear();
  2849. }
  2850. int returnValue = this.Adapter.Fill(dataTable);
  2851. return returnValue;
  2852. }
  2853. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2854. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2855. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2856. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  2857. public virtual _LesnichukEvgenuiAleksandrovich_19DataSet.ВыдачаDataTable GetData() {
  2858. this.Adapter.SelectCommand = this.CommandCollection[0];
  2859. _LesnichukEvgenuiAleksandrovich_19DataSet.ВыдачаDataTable dataTable = new _LesnichukEvgenuiAleksandrovich_19DataSet.ВыдачаDataTable();
  2860. this.Adapter.Fill(dataTable);
  2861. return dataTable;
  2862. }
  2863. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2864. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2865. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2866. public virtual int Update(_LesnichukEvgenuiAleksandrovich_19DataSet.ВыдачаDataTable dataTable) {
  2867. return this.Adapter.Update(dataTable);
  2868. }
  2869. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2870. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2871. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2872. public virtual int Update(_LesnichukEvgenuiAleksandrovich_19DataSet dataSet) {
  2873. return this.Adapter.Update(dataSet, "Выдача");
  2874. }
  2875. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2876. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2877. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2878. public virtual int Update(global::System.Data.DataRow dataRow) {
  2879. return this.Adapter.Update(new global::System.Data.DataRow[] {
  2880. dataRow});
  2881. }
  2882. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2883. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2884. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2885. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  2886. return this.Adapter.Update(dataRows);
  2887. }
  2888. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2889. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2890. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2891. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  2892. public virtual int Delete(int Original_Номер_записи, int Original_Номер_читателя, int Original_Номер_зала, int Original_Номер_библиотекаря, int Original_Номер_книги) {
  2893. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Номер_записи));
  2894. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_Номер_читателя));
  2895. this.Adapter.DeleteCommand.Parameters[2].Value = ((int)(Original_Номер_зала));
  2896. this.Adapter.DeleteCommand.Parameters[3].Value = ((int)(Original_Номер_библиотекаря));
  2897. this.Adapter.DeleteCommand.Parameters[4].Value = ((int)(Original_Номер_книги));
  2898. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  2899. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2900. != global::System.Data.ConnectionState.Open)) {
  2901. this.Adapter.DeleteCommand.Connection.Open();
  2902. }
  2903. try {
  2904. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  2905. return returnValue;
  2906. }
  2907. finally {
  2908. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2909. this.Adapter.DeleteCommand.Connection.Close();
  2910. }
  2911. }
  2912. }
  2913. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2914. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2915. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2916. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  2917. public virtual int Insert(int Номер_читателя, int Номер_зала, int Номер_библиотекаря, int Номер_книги) {
  2918. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Номер_читателя));
  2919. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Номер_зала));
  2920. this.Adapter.InsertCommand.Parameters[2].Value = ((int)(Номер_библиотекаря));
  2921. this.Adapter.InsertCommand.Parameters[3].Value = ((int)(Номер_книги));
  2922. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  2923. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2924. != global::System.Data.ConnectionState.Open)) {
  2925. this.Adapter.InsertCommand.Connection.Open();
  2926. }
  2927. try {
  2928. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  2929. return returnValue;
  2930. }
  2931. finally {
  2932. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2933. this.Adapter.InsertCommand.Connection.Close();
  2934. }
  2935. }
  2936. }
  2937. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2938. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2939. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2940. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2941. public virtual int Update(int Номер_читателя, int Номер_зала, int Номер_библиотекаря, int Номер_книги, int Original_Номер_записи, int Original_Номер_читателя, int Original_Номер_зала, int Original_Номер_библиотекаря, int Original_Номер_книги, int Номер_записи) {
  2942. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Номер_читателя));
  2943. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Номер_зала));
  2944. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Номер_библиотекаря));
  2945. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Номер_книги));
  2946. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_Номер_записи));
  2947. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Original_Номер_читателя));
  2948. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_Номер_зала));
  2949. this.Adapter.UpdateCommand.Parameters[7].Value = ((int)(Original_Номер_библиотекаря));
  2950. this.Adapter.UpdateCommand.Parameters[8].Value = ((int)(Original_Номер_книги));
  2951. this.Adapter.UpdateCommand.Parameters[9].Value = ((int)(Номер_записи));
  2952. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  2953. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  2954. != global::System.Data.ConnectionState.Open)) {
  2955. this.Adapter.UpdateCommand.Connection.Open();
  2956. }
  2957. try {
  2958. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  2959. return returnValue;
  2960. }
  2961. finally {
  2962. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  2963. this.Adapter.UpdateCommand.Connection.Close();
  2964. }
  2965. }
  2966. }
  2967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2969. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2970. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  2971. public virtual int Update(int Номер_читателя, int Номер_зала, int Номер_библиотекаря, int Номер_книги, int Original_Номер_записи, int Original_Номер_читателя, int Original_Номер_зала, int Original_Номер_библиотекаря, int Original_Номер_книги) {
  2972. return this.Update(Номер_читателя, Номер_зала, Номер_библиотекаря, Номер_книги, Original_Номер_записи, Original_Номер_читателя, Original_Номер_зала, Original_Номер_библиотекаря, Original_Номер_книги, Original_Номер_записи);
  2973. }
  2974. }
  2975. /// <summary>
  2976. ///Represents the connection and commands used to retrieve and save data.
  2977. ///</summary>
  2978. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  2979. [global::System.ComponentModel.ToolboxItem(true)]
  2980. [global::System.ComponentModel.DataObjectAttribute(true)]
  2981. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  2982. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  2983. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  2984. public partial class ЗалTableAdapter : global::System.ComponentModel.Component {
  2985. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  2986. private global::System.Data.SqlClient.SqlConnection _connection;
  2987. private global::System.Data.SqlClient.SqlTransaction _transaction;
  2988. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  2989. private bool _clearBeforeFill;
  2990. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2991. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2992. public ЗалTableAdapter() {
  2993. this.ClearBeforeFill = true;
  2994. }
  2995. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  2996. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  2997. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  2998. get {
  2999. if ((this._adapter == null)) {
  3000. this.InitAdapter();
  3001. }
  3002. return this._adapter;
  3003. }
  3004. }
  3005. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3006. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3007. internal global::System.Data.SqlClient.SqlConnection Connection {
  3008. get {
  3009. if ((this._connection == null)) {
  3010. this.InitConnection();
  3011. }
  3012. return this._connection;
  3013. }
  3014. set {
  3015. this._connection = value;
  3016. if ((this.Adapter.InsertCommand != null)) {
  3017. this.Adapter.InsertCommand.Connection = value;
  3018. }
  3019. if ((this.Adapter.DeleteCommand != null)) {
  3020. this.Adapter.DeleteCommand.Connection = value;
  3021. }
  3022. if ((this.Adapter.UpdateCommand != null)) {
  3023. this.Adapter.UpdateCommand.Connection = value;
  3024. }
  3025. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3026. if ((this.CommandCollection[i] != null)) {
  3027. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3028. }
  3029. }
  3030. }
  3031. }
  3032. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3033. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3034. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3035. get {
  3036. return this._transaction;
  3037. }
  3038. set {
  3039. this._transaction = value;
  3040. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3041. this.CommandCollection[i].Transaction = this._transaction;
  3042. }
  3043. if (((this.Adapter != null)
  3044. && (this.Adapter.DeleteCommand != null))) {
  3045. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3046. }
  3047. if (((this.Adapter != null)
  3048. && (this.Adapter.InsertCommand != null))) {
  3049. this.Adapter.InsertCommand.Transaction = this._transaction;
  3050. }
  3051. if (((this.Adapter != null)
  3052. && (this.Adapter.UpdateCommand != null))) {
  3053. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3054. }
  3055. }
  3056. }
  3057. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3058. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3059. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3060. get {
  3061. if ((this._commandCollection == null)) {
  3062. this.InitCommandCollection();
  3063. }
  3064. return this._commandCollection;
  3065. }
  3066. }
  3067. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3068. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3069. public bool ClearBeforeFill {
  3070. get {
  3071. return this._clearBeforeFill;
  3072. }
  3073. set {
  3074. this._clearBeforeFill = value;
  3075. }
  3076. }
  3077. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3078. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3079. private void InitAdapter() {
  3080. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3081. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3082. tableMapping.SourceTable = "Table";
  3083. tableMapping.DataSetTable = "Зал";
  3084. tableMapping.ColumnMappings.Add("Номер зала", "Номер зала");
  3085. tableMapping.ColumnMappings.Add("Название", "Название");
  3086. tableMapping.ColumnMappings.Add("Примечание", "Примечание");
  3087. this._adapter.TableMappings.Add(tableMapping);
  3088. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3089. this._adapter.DeleteCommand.Connection = this.Connection;
  3090. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Зал] WHERE (([Номер зала] = @Original_Номер_зала))";
  3091. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3092. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_зала", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер зала", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3093. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3094. this._adapter.InsertCommand.Connection = this.Connection;
  3095. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Зал] ([Название], [Примечание]) VALUES (@Название, @Примечание" +
  3096. ");\r\nSELECT [Номер зала], Название, Примечание FROM Зал WHERE ([Номер зала] = SCO" +
  3097. "PE_IDENTITY())";
  3098. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3099. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3100. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Примечание", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Примечание", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3101. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3102. this._adapter.UpdateCommand.Connection = this.Connection;
  3103. this._adapter.UpdateCommand.CommandText = "UPDATE [dbo].[Зал] SET [Название] = @Название, [Примечание] = @Примечание WHERE (" +
  3104. "([Номер зала] = @Original_Номер_зала));\r\nSELECT [Номер зала], Название, Примечан" +
  3105. "ие FROM Зал WHERE ([Номер зала] = @Номер_зала)";
  3106. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3107. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3108. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Примечание", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Примечание", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3109. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_зала", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер зала", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3110. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_зала", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Номер зала", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3111. }
  3112. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3113. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3114. private void InitConnection() {
  3115. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3116. this._connection.ConnectionString = global::LesnichukEvgenuiAleksandrovich_19.Properties.Settings.Default.LesnichukEvgenuiAleksandrovich_19ConnectionString;
  3117. }
  3118. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3119. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3120. private void InitCommandCollection() {
  3121. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3122. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3123. this._commandCollection[0].Connection = this.Connection;
  3124. this._commandCollection[0].CommandText = "SELECT [Номер зала], Название, Примечание FROM dbo.Зал";
  3125. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3126. }
  3127. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3128. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3129. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3130. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3131. public virtual int Fill(_LesnichukEvgenuiAleksandrovich_19DataSet.ЗалDataTable dataTable) {
  3132. this.Adapter.SelectCommand = this.CommandCollection[0];
  3133. if ((this.ClearBeforeFill == true)) {
  3134. dataTable.Clear();
  3135. }
  3136. int returnValue = this.Adapter.Fill(dataTable);
  3137. return returnValue;
  3138. }
  3139. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3140. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3141. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3142. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3143. public virtual _LesnichukEvgenuiAleksandrovich_19DataSet.ЗалDataTable GetData() {
  3144. this.Adapter.SelectCommand = this.CommandCollection[0];
  3145. _LesnichukEvgenuiAleksandrovich_19DataSet.ЗалDataTable dataTable = new _LesnichukEvgenuiAleksandrovich_19DataSet.ЗалDataTable();
  3146. this.Adapter.Fill(dataTable);
  3147. return dataTable;
  3148. }
  3149. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3150. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3151. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3152. public virtual int Update(_LesnichukEvgenuiAleksandrovich_19DataSet.ЗалDataTable dataTable) {
  3153. return this.Adapter.Update(dataTable);
  3154. }
  3155. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3156. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3157. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3158. public virtual int Update(_LesnichukEvgenuiAleksandrovich_19DataSet dataSet) {
  3159. return this.Adapter.Update(dataSet, "Зал");
  3160. }
  3161. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3162. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3163. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3164. public virtual int Update(global::System.Data.DataRow dataRow) {
  3165. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3166. dataRow});
  3167. }
  3168. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3169. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3170. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3171. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3172. return this.Adapter.Update(dataRows);
  3173. }
  3174. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3175. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3176. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3177. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3178. public virtual int Delete(int Original_Номер_зала) {
  3179. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Номер_зала));
  3180. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3181. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3182. != global::System.Data.ConnectionState.Open)) {
  3183. this.Adapter.DeleteCommand.Connection.Open();
  3184. }
  3185. try {
  3186. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3187. return returnValue;
  3188. }
  3189. finally {
  3190. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3191. this.Adapter.DeleteCommand.Connection.Close();
  3192. }
  3193. }
  3194. }
  3195. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3196. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3197. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3198. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3199. public virtual int Insert(string Название, string Примечание) {
  3200. if ((Название == null)) {
  3201. throw new global::System.ArgumentNullException("Название");
  3202. }
  3203. else {
  3204. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  3205. }
  3206. if ((Примечание == null)) {
  3207. this.Adapter.InsertCommand.Parameters[1].Value = global::System.DBNull.Value;
  3208. }
  3209. else {
  3210. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Примечание));
  3211. }
  3212. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3213. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3214. != global::System.Data.ConnectionState.Open)) {
  3215. this.Adapter.InsertCommand.Connection.Open();
  3216. }
  3217. try {
  3218. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3219. return returnValue;
  3220. }
  3221. finally {
  3222. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3223. this.Adapter.InsertCommand.Connection.Close();
  3224. }
  3225. }
  3226. }
  3227. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3228. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3229. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3230. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3231. public virtual int Update(string Название, string Примечание, int Original_Номер_зала, int Номер_зала) {
  3232. if ((Название == null)) {
  3233. throw new global::System.ArgumentNullException("Название");
  3234. }
  3235. else {
  3236. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  3237. }
  3238. if ((Примечание == null)) {
  3239. this.Adapter.UpdateCommand.Parameters[1].Value = global::System.DBNull.Value;
  3240. }
  3241. else {
  3242. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Примечание));
  3243. }
  3244. this.Adapter.UpdateCommand.Parameters[2].Value = ((int)(Original_Номер_зала));
  3245. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Номер_зала));
  3246. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3247. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3248. != global::System.Data.ConnectionState.Open)) {
  3249. this.Adapter.UpdateCommand.Connection.Open();
  3250. }
  3251. try {
  3252. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3253. return returnValue;
  3254. }
  3255. finally {
  3256. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3257. this.Adapter.UpdateCommand.Connection.Close();
  3258. }
  3259. }
  3260. }
  3261. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3262. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3263. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3264. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3265. public virtual int Update(string Название, string Примечание, int Original_Номер_зала) {
  3266. return this.Update(Название, Примечание, Original_Номер_зала, Original_Номер_зала);
  3267. }
  3268. }
  3269. /// <summary>
  3270. ///Represents the connection and commands used to retrieve and save data.
  3271. ///</summary>
  3272. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3273. [global::System.ComponentModel.ToolboxItem(true)]
  3274. [global::System.ComponentModel.DataObjectAttribute(true)]
  3275. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3276. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3277. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3278. public partial class КнигаTableAdapter : global::System.ComponentModel.Component {
  3279. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3280. private global::System.Data.SqlClient.SqlConnection _connection;
  3281. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3282. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3283. private bool _clearBeforeFill;
  3284. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3285. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3286. public КнигаTableAdapter() {
  3287. this.ClearBeforeFill = true;
  3288. }
  3289. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3290. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3291. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3292. get {
  3293. if ((this._adapter == null)) {
  3294. this.InitAdapter();
  3295. }
  3296. return this._adapter;
  3297. }
  3298. }
  3299. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3300. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3301. internal global::System.Data.SqlClient.SqlConnection Connection {
  3302. get {
  3303. if ((this._connection == null)) {
  3304. this.InitConnection();
  3305. }
  3306. return this._connection;
  3307. }
  3308. set {
  3309. this._connection = value;
  3310. if ((this.Adapter.InsertCommand != null)) {
  3311. this.Adapter.InsertCommand.Connection = value;
  3312. }
  3313. if ((this.Adapter.DeleteCommand != null)) {
  3314. this.Adapter.DeleteCommand.Connection = value;
  3315. }
  3316. if ((this.Adapter.UpdateCommand != null)) {
  3317. this.Adapter.UpdateCommand.Connection = value;
  3318. }
  3319. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3320. if ((this.CommandCollection[i] != null)) {
  3321. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3322. }
  3323. }
  3324. }
  3325. }
  3326. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3327. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3328. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3329. get {
  3330. return this._transaction;
  3331. }
  3332. set {
  3333. this._transaction = value;
  3334. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3335. this.CommandCollection[i].Transaction = this._transaction;
  3336. }
  3337. if (((this.Adapter != null)
  3338. && (this.Adapter.DeleteCommand != null))) {
  3339. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3340. }
  3341. if (((this.Adapter != null)
  3342. && (this.Adapter.InsertCommand != null))) {
  3343. this.Adapter.InsertCommand.Transaction = this._transaction;
  3344. }
  3345. if (((this.Adapter != null)
  3346. && (this.Adapter.UpdateCommand != null))) {
  3347. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3348. }
  3349. }
  3350. }
  3351. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3352. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3353. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3354. get {
  3355. if ((this._commandCollection == null)) {
  3356. this.InitCommandCollection();
  3357. }
  3358. return this._commandCollection;
  3359. }
  3360. }
  3361. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3362. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3363. public bool ClearBeforeFill {
  3364. get {
  3365. return this._clearBeforeFill;
  3366. }
  3367. set {
  3368. this._clearBeforeFill = value;
  3369. }
  3370. }
  3371. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3372. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3373. private void InitAdapter() {
  3374. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3375. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3376. tableMapping.SourceTable = "Table";
  3377. tableMapping.DataSetTable = "Книга";
  3378. tableMapping.ColumnMappings.Add("Шифр книги", "Шифр книги");
  3379. tableMapping.ColumnMappings.Add("Название", "Название");
  3380. tableMapping.ColumnMappings.Add("Количество страниц", "Количество страниц");
  3381. tableMapping.ColumnMappings.Add("Автор", "Автор");
  3382. this._adapter.TableMappings.Add(tableMapping);
  3383. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3384. this._adapter.DeleteCommand.Connection = this.Connection;
  3385. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Книга] WHERE (([Шифр книги] = @Original_Шифр_книги) AND ([Коли" +
  3386. "чество страниц] = @Original_Количество_страниц))";
  3387. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3388. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Шифр_книги", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Шифр книги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3389. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество_страниц", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество страниц", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3390. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3391. this._adapter.InsertCommand.Connection = this.Connection;
  3392. this._adapter.InsertCommand.CommandText = "INSERT INTO [dbo].[Книга] ([Название], [Количество страниц], [Автор]) VALUES (@На" +
  3393. "звание, @Количество_страниц, @Автор);\r\nSELECT [Шифр книги], Название, [Количеств" +
  3394. "о страниц], Автор FROM Книга WHERE ([Шифр книги] = SCOPE_IDENTITY())";
  3395. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3396. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3397. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество_страниц", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество страниц", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3398. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Автор", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Автор", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3399. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3400. this._adapter.UpdateCommand.Connection = this.Connection;
  3401. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Книга] SET [Название] = @Название, [Количество страниц] = @Количество_страниц, [Автор] = @Автор WHERE (([Шифр книги] = @Original_Шифр_книги) AND ([Количество страниц] = @Original_Количество_страниц));
  3402. SELECT [Шифр книги], Название, [Количество страниц], Автор FROM Книга WHERE ([Шифр книги] = @Шифр_книги)";
  3403. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3404. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Название", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Название", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3405. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Количество_страниц", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество страниц", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3406. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Автор", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Автор", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3407. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Шифр_книги", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Шифр книги", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3408. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Количество_страниц", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Количество страниц", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3409. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Шифр_книги", global::System.Data.SqlDbType.Int, 4, global::System.Data.ParameterDirection.Input, 0, 0, "Шифр книги", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3410. }
  3411. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3412. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3413. private void InitConnection() {
  3414. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3415. this._connection.ConnectionString = global::LesnichukEvgenuiAleksandrovich_19.Properties.Settings.Default.LesnichukEvgenuiAleksandrovich_19ConnectionString;
  3416. }
  3417. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3418. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3419. private void InitCommandCollection() {
  3420. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3421. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3422. this._commandCollection[0].Connection = this.Connection;
  3423. this._commandCollection[0].CommandText = "SELECT [Шифр книги], Название, [Количество страниц], Автор FROM dbo.Книга";
  3424. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3425. }
  3426. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3427. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3428. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3429. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3430. public virtual int Fill(_LesnichukEvgenuiAleksandrovich_19DataSet.КнигаDataTable dataTable) {
  3431. this.Adapter.SelectCommand = this.CommandCollection[0];
  3432. if ((this.ClearBeforeFill == true)) {
  3433. dataTable.Clear();
  3434. }
  3435. int returnValue = this.Adapter.Fill(dataTable);
  3436. return returnValue;
  3437. }
  3438. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3439. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3440. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3441. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3442. public virtual _LesnichukEvgenuiAleksandrovich_19DataSet.КнигаDataTable GetData() {
  3443. this.Adapter.SelectCommand = this.CommandCollection[0];
  3444. _LesnichukEvgenuiAleksandrovich_19DataSet.КнигаDataTable dataTable = new _LesnichukEvgenuiAleksandrovich_19DataSet.КнигаDataTable();
  3445. this.Adapter.Fill(dataTable);
  3446. return dataTable;
  3447. }
  3448. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3449. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3450. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3451. public virtual int Update(_LesnichukEvgenuiAleksandrovich_19DataSet.КнигаDataTable dataTable) {
  3452. return this.Adapter.Update(dataTable);
  3453. }
  3454. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3455. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3456. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3457. public virtual int Update(_LesnichukEvgenuiAleksandrovich_19DataSet dataSet) {
  3458. return this.Adapter.Update(dataSet, "Книга");
  3459. }
  3460. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3461. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3462. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3463. public virtual int Update(global::System.Data.DataRow dataRow) {
  3464. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3465. dataRow});
  3466. }
  3467. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3468. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3469. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3470. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3471. return this.Adapter.Update(dataRows);
  3472. }
  3473. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3474. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3475. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3476. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3477. public virtual int Delete(int Original_Шифр_книги, int Original_Количество_страниц) {
  3478. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Шифр_книги));
  3479. this.Adapter.DeleteCommand.Parameters[1].Value = ((int)(Original_Количество_страниц));
  3480. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3481. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3482. != global::System.Data.ConnectionState.Open)) {
  3483. this.Adapter.DeleteCommand.Connection.Open();
  3484. }
  3485. try {
  3486. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3487. return returnValue;
  3488. }
  3489. finally {
  3490. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3491. this.Adapter.DeleteCommand.Connection.Close();
  3492. }
  3493. }
  3494. }
  3495. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3497. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3498. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3499. public virtual int Insert(string Название, int Количество_страниц, string Автор) {
  3500. if ((Название == null)) {
  3501. throw new global::System.ArgumentNullException("Название");
  3502. }
  3503. else {
  3504. this.Adapter.InsertCommand.Parameters[0].Value = ((string)(Название));
  3505. }
  3506. this.Adapter.InsertCommand.Parameters[1].Value = ((int)(Количество_страниц));
  3507. if ((Автор == null)) {
  3508. throw new global::System.ArgumentNullException("Автор");
  3509. }
  3510. else {
  3511. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Автор));
  3512. }
  3513. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3514. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3515. != global::System.Data.ConnectionState.Open)) {
  3516. this.Adapter.InsertCommand.Connection.Open();
  3517. }
  3518. try {
  3519. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3520. return returnValue;
  3521. }
  3522. finally {
  3523. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3524. this.Adapter.InsertCommand.Connection.Close();
  3525. }
  3526. }
  3527. }
  3528. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3529. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3530. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3531. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3532. public virtual int Update(string Название, int Количество_страниц, string Автор, int Original_Шифр_книги, int Original_Количество_страниц, int Шифр_книги) {
  3533. if ((Название == null)) {
  3534. throw new global::System.ArgumentNullException("Название");
  3535. }
  3536. else {
  3537. this.Adapter.UpdateCommand.Parameters[0].Value = ((string)(Название));
  3538. }
  3539. this.Adapter.UpdateCommand.Parameters[1].Value = ((int)(Количество_страниц));
  3540. if ((Автор == null)) {
  3541. throw new global::System.ArgumentNullException("Автор");
  3542. }
  3543. else {
  3544. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Автор));
  3545. }
  3546. this.Adapter.UpdateCommand.Parameters[3].Value = ((int)(Original_Шифр_книги));
  3547. this.Adapter.UpdateCommand.Parameters[4].Value = ((int)(Original_Количество_страниц));
  3548. this.Adapter.UpdateCommand.Parameters[5].Value = ((int)(Шифр_книги));
  3549. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3550. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3551. != global::System.Data.ConnectionState.Open)) {
  3552. this.Adapter.UpdateCommand.Connection.Open();
  3553. }
  3554. try {
  3555. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3556. return returnValue;
  3557. }
  3558. finally {
  3559. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3560. this.Adapter.UpdateCommand.Connection.Close();
  3561. }
  3562. }
  3563. }
  3564. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3565. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3566. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3567. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3568. public virtual int Update(string Название, int Количество_страниц, string Автор, int Original_Шифр_книги, int Original_Количество_страниц) {
  3569. return this.Update(Название, Количество_страниц, Автор, Original_Шифр_книги, Original_Количество_страниц, Original_Шифр_книги);
  3570. }
  3571. }
  3572. /// <summary>
  3573. ///Represents the connection and commands used to retrieve and save data.
  3574. ///</summary>
  3575. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3576. [global::System.ComponentModel.ToolboxItem(true)]
  3577. [global::System.ComponentModel.DataObjectAttribute(true)]
  3578. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterDesigner, Microsoft.VSDesigner" +
  3579. ", Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3580. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3581. public partial class ЧитательTableAdapter : global::System.ComponentModel.Component {
  3582. private global::System.Data.SqlClient.SqlDataAdapter _adapter;
  3583. private global::System.Data.SqlClient.SqlConnection _connection;
  3584. private global::System.Data.SqlClient.SqlTransaction _transaction;
  3585. private global::System.Data.SqlClient.SqlCommand[] _commandCollection;
  3586. private bool _clearBeforeFill;
  3587. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3588. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3589. public ЧитательTableAdapter() {
  3590. this.ClearBeforeFill = true;
  3591. }
  3592. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3593. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3594. protected internal global::System.Data.SqlClient.SqlDataAdapter Adapter {
  3595. get {
  3596. if ((this._adapter == null)) {
  3597. this.InitAdapter();
  3598. }
  3599. return this._adapter;
  3600. }
  3601. }
  3602. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3603. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3604. internal global::System.Data.SqlClient.SqlConnection Connection {
  3605. get {
  3606. if ((this._connection == null)) {
  3607. this.InitConnection();
  3608. }
  3609. return this._connection;
  3610. }
  3611. set {
  3612. this._connection = value;
  3613. if ((this.Adapter.InsertCommand != null)) {
  3614. this.Adapter.InsertCommand.Connection = value;
  3615. }
  3616. if ((this.Adapter.DeleteCommand != null)) {
  3617. this.Adapter.DeleteCommand.Connection = value;
  3618. }
  3619. if ((this.Adapter.UpdateCommand != null)) {
  3620. this.Adapter.UpdateCommand.Connection = value;
  3621. }
  3622. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3623. if ((this.CommandCollection[i] != null)) {
  3624. ((global::System.Data.SqlClient.SqlCommand)(this.CommandCollection[i])).Connection = value;
  3625. }
  3626. }
  3627. }
  3628. }
  3629. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3630. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3631. internal global::System.Data.SqlClient.SqlTransaction Transaction {
  3632. get {
  3633. return this._transaction;
  3634. }
  3635. set {
  3636. this._transaction = value;
  3637. for (int i = 0; (i < this.CommandCollection.Length); i = (i + 1)) {
  3638. this.CommandCollection[i].Transaction = this._transaction;
  3639. }
  3640. if (((this.Adapter != null)
  3641. && (this.Adapter.DeleteCommand != null))) {
  3642. this.Adapter.DeleteCommand.Transaction = this._transaction;
  3643. }
  3644. if (((this.Adapter != null)
  3645. && (this.Adapter.InsertCommand != null))) {
  3646. this.Adapter.InsertCommand.Transaction = this._transaction;
  3647. }
  3648. if (((this.Adapter != null)
  3649. && (this.Adapter.UpdateCommand != null))) {
  3650. this.Adapter.UpdateCommand.Transaction = this._transaction;
  3651. }
  3652. }
  3653. }
  3654. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3655. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3656. protected global::System.Data.SqlClient.SqlCommand[] CommandCollection {
  3657. get {
  3658. if ((this._commandCollection == null)) {
  3659. this.InitCommandCollection();
  3660. }
  3661. return this._commandCollection;
  3662. }
  3663. }
  3664. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3665. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3666. public bool ClearBeforeFill {
  3667. get {
  3668. return this._clearBeforeFill;
  3669. }
  3670. set {
  3671. this._clearBeforeFill = value;
  3672. }
  3673. }
  3674. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3675. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3676. private void InitAdapter() {
  3677. this._adapter = new global::System.Data.SqlClient.SqlDataAdapter();
  3678. global::System.Data.Common.DataTableMapping tableMapping = new global::System.Data.Common.DataTableMapping();
  3679. tableMapping.SourceTable = "Table";
  3680. tableMapping.DataSetTable = "Читатель";
  3681. tableMapping.ColumnMappings.Add("Номер читателя", "Номер читателя");
  3682. tableMapping.ColumnMappings.Add("Фамилия", "Фамилия");
  3683. tableMapping.ColumnMappings.Add("Имя", "Имя");
  3684. tableMapping.ColumnMappings.Add("Отчество", "Отчество");
  3685. tableMapping.ColumnMappings.Add("Адрес", "Адрес");
  3686. tableMapping.ColumnMappings.Add("Телефон", "Телефон");
  3687. this._adapter.TableMappings.Add(tableMapping);
  3688. this._adapter.DeleteCommand = new global::System.Data.SqlClient.SqlCommand();
  3689. this._adapter.DeleteCommand.Connection = this.Connection;
  3690. this._adapter.DeleteCommand.CommandText = "DELETE FROM [dbo].[Читатель] WHERE (([Номер читателя] = @Original_Номер_читателя)" +
  3691. " AND ([Телефон] = @Original_Телефон))";
  3692. this._adapter.DeleteCommand.CommandType = global::System.Data.CommandType.Text;
  3693. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_читателя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер читателя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3694. this._adapter.DeleteCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3695. this._adapter.InsertCommand = new global::System.Data.SqlClient.SqlCommand();
  3696. this._adapter.InsertCommand.Connection = this.Connection;
  3697. this._adapter.InsertCommand.CommandText = @"INSERT INTO [dbo].[Читатель] ([Номер читателя], [Фамилия], [Имя], [Отчество], [Адрес], [Телефон]) VALUES (@Номер_читателя, @Фамилия, @Имя, @Отчество, @Адрес, @Телефон);
  3698. SELECT [Номер читателя], Фамилия, Имя, Отчество, Адрес, Телефон FROM Читатель WHERE ([Номер читателя] = @Номер_читателя)";
  3699. this._adapter.InsertCommand.CommandType = global::System.Data.CommandType.Text;
  3700. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_читателя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер читателя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3701. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3702. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3703. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3704. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Адрес", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Адрес", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3705. this._adapter.InsertCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3706. this._adapter.UpdateCommand = new global::System.Data.SqlClient.SqlCommand();
  3707. this._adapter.UpdateCommand.Connection = this.Connection;
  3708. this._adapter.UpdateCommand.CommandText = @"UPDATE [dbo].[Читатель] SET [Номер читателя] = @Номер_читателя, [Фамилия] = @Фамилия, [Имя] = @Имя, [Отчество] = @Отчество, [Адрес] = @Адрес, [Телефон] = @Телефон WHERE (([Номер читателя] = @Original_Номер_читателя) AND ([Телефон] = @Original_Телефон));
  3709. SELECT [Номер читателя], Фамилия, Имя, Отчество, Адрес, Телефон FROM Читатель WHERE ([Номер читателя] = @Номер_читателя)";
  3710. this._adapter.UpdateCommand.CommandType = global::System.Data.CommandType.Text;
  3711. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Номер_читателя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер читателя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3712. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Фамилия", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Фамилия", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3713. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Имя", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Имя", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3714. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Отчество", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Отчество", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3715. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Адрес", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Адрес", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3716. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Current, false, null, "", "", ""));
  3717. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Номер_читателя", global::System.Data.SqlDbType.Int, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Номер читателя", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3718. this._adapter.UpdateCommand.Parameters.Add(new global::System.Data.SqlClient.SqlParameter("@Original_Телефон", global::System.Data.SqlDbType.NVarChar, 0, global::System.Data.ParameterDirection.Input, 0, 0, "Телефон", global::System.Data.DataRowVersion.Original, false, null, "", "", ""));
  3719. }
  3720. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3721. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3722. private void InitConnection() {
  3723. this._connection = new global::System.Data.SqlClient.SqlConnection();
  3724. this._connection.ConnectionString = global::LesnichukEvgenuiAleksandrovich_19.Properties.Settings.Default.LesnichukEvgenuiAleksandrovich_19ConnectionString;
  3725. }
  3726. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3727. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3728. private void InitCommandCollection() {
  3729. this._commandCollection = new global::System.Data.SqlClient.SqlCommand[1];
  3730. this._commandCollection[0] = new global::System.Data.SqlClient.SqlCommand();
  3731. this._commandCollection[0].Connection = this.Connection;
  3732. this._commandCollection[0].CommandText = "SELECT [Номер читателя], Фамилия, Имя, Отчество, Адрес, Телефон FROM dbo.Читатель" +
  3733. "";
  3734. this._commandCollection[0].CommandType = global::System.Data.CommandType.Text;
  3735. }
  3736. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3737. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3738. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3739. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Fill, true)]
  3740. public virtual int Fill(_LesnichukEvgenuiAleksandrovich_19DataSet.ЧитательDataTable dataTable) {
  3741. this.Adapter.SelectCommand = this.CommandCollection[0];
  3742. if ((this.ClearBeforeFill == true)) {
  3743. dataTable.Clear();
  3744. }
  3745. int returnValue = this.Adapter.Fill(dataTable);
  3746. return returnValue;
  3747. }
  3748. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3749. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3750. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3751. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Select, true)]
  3752. public virtual _LesnichukEvgenuiAleksandrovich_19DataSet.ЧитательDataTable GetData() {
  3753. this.Adapter.SelectCommand = this.CommandCollection[0];
  3754. _LesnichukEvgenuiAleksandrovich_19DataSet.ЧитательDataTable dataTable = new _LesnichukEvgenuiAleksandrovich_19DataSet.ЧитательDataTable();
  3755. this.Adapter.Fill(dataTable);
  3756. return dataTable;
  3757. }
  3758. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3759. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3760. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3761. public virtual int Update(_LesnichukEvgenuiAleksandrovich_19DataSet.ЧитательDataTable dataTable) {
  3762. return this.Adapter.Update(dataTable);
  3763. }
  3764. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3765. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3766. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3767. public virtual int Update(_LesnichukEvgenuiAleksandrovich_19DataSet dataSet) {
  3768. return this.Adapter.Update(dataSet, "Читатель");
  3769. }
  3770. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3771. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3772. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3773. public virtual int Update(global::System.Data.DataRow dataRow) {
  3774. return this.Adapter.Update(new global::System.Data.DataRow[] {
  3775. dataRow});
  3776. }
  3777. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3778. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3779. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3780. public virtual int Update(global::System.Data.DataRow[] dataRows) {
  3781. return this.Adapter.Update(dataRows);
  3782. }
  3783. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3784. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3785. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3786. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Delete, true)]
  3787. public virtual int Delete(int Original_Номер_читателя, string Original_Телефон) {
  3788. this.Adapter.DeleteCommand.Parameters[0].Value = ((int)(Original_Номер_читателя));
  3789. if ((Original_Телефон == null)) {
  3790. throw new global::System.ArgumentNullException("Original_Телефон");
  3791. }
  3792. else {
  3793. this.Adapter.DeleteCommand.Parameters[1].Value = ((string)(Original_Телефон));
  3794. }
  3795. global::System.Data.ConnectionState previousConnectionState = this.Adapter.DeleteCommand.Connection.State;
  3796. if (((this.Adapter.DeleteCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3797. != global::System.Data.ConnectionState.Open)) {
  3798. this.Adapter.DeleteCommand.Connection.Open();
  3799. }
  3800. try {
  3801. int returnValue = this.Adapter.DeleteCommand.ExecuteNonQuery();
  3802. return returnValue;
  3803. }
  3804. finally {
  3805. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3806. this.Adapter.DeleteCommand.Connection.Close();
  3807. }
  3808. }
  3809. }
  3810. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3811. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3812. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3813. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Insert, true)]
  3814. public virtual int Insert(int Номер_читателя, string Фамилия, string Имя, string Отчество, string Адрес, string Телефон) {
  3815. this.Adapter.InsertCommand.Parameters[0].Value = ((int)(Номер_читателя));
  3816. if ((Фамилия == null)) {
  3817. throw new global::System.ArgumentNullException("Фамилия");
  3818. }
  3819. else {
  3820. this.Adapter.InsertCommand.Parameters[1].Value = ((string)(Фамилия));
  3821. }
  3822. if ((Имя == null)) {
  3823. throw new global::System.ArgumentNullException("Имя");
  3824. }
  3825. else {
  3826. this.Adapter.InsertCommand.Parameters[2].Value = ((string)(Имя));
  3827. }
  3828. if ((Отчество == null)) {
  3829. this.Adapter.InsertCommand.Parameters[3].Value = global::System.DBNull.Value;
  3830. }
  3831. else {
  3832. this.Adapter.InsertCommand.Parameters[3].Value = ((string)(Отчество));
  3833. }
  3834. if ((Адрес == null)) {
  3835. this.Adapter.InsertCommand.Parameters[4].Value = global::System.DBNull.Value;
  3836. }
  3837. else {
  3838. this.Adapter.InsertCommand.Parameters[4].Value = ((string)(Адрес));
  3839. }
  3840. if ((Телефон == null)) {
  3841. throw new global::System.ArgumentNullException("Телефон");
  3842. }
  3843. else {
  3844. this.Adapter.InsertCommand.Parameters[5].Value = ((string)(Телефон));
  3845. }
  3846. global::System.Data.ConnectionState previousConnectionState = this.Adapter.InsertCommand.Connection.State;
  3847. if (((this.Adapter.InsertCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3848. != global::System.Data.ConnectionState.Open)) {
  3849. this.Adapter.InsertCommand.Connection.Open();
  3850. }
  3851. try {
  3852. int returnValue = this.Adapter.InsertCommand.ExecuteNonQuery();
  3853. return returnValue;
  3854. }
  3855. finally {
  3856. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3857. this.Adapter.InsertCommand.Connection.Close();
  3858. }
  3859. }
  3860. }
  3861. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3862. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3863. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3864. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3865. public virtual int Update(int Номер_читателя, string Фамилия, string Имя, string Отчество, string Адрес, string Телефон, int Original_Номер_читателя, string Original_Телефон) {
  3866. this.Adapter.UpdateCommand.Parameters[0].Value = ((int)(Номер_читателя));
  3867. if ((Фамилия == null)) {
  3868. throw new global::System.ArgumentNullException("Фамилия");
  3869. }
  3870. else {
  3871. this.Adapter.UpdateCommand.Parameters[1].Value = ((string)(Фамилия));
  3872. }
  3873. if ((Имя == null)) {
  3874. throw new global::System.ArgumentNullException("Имя");
  3875. }
  3876. else {
  3877. this.Adapter.UpdateCommand.Parameters[2].Value = ((string)(Имя));
  3878. }
  3879. if ((Отчество == null)) {
  3880. this.Adapter.UpdateCommand.Parameters[3].Value = global::System.DBNull.Value;
  3881. }
  3882. else {
  3883. this.Adapter.UpdateCommand.Parameters[3].Value = ((string)(Отчество));
  3884. }
  3885. if ((Адрес == null)) {
  3886. this.Adapter.UpdateCommand.Parameters[4].Value = global::System.DBNull.Value;
  3887. }
  3888. else {
  3889. this.Adapter.UpdateCommand.Parameters[4].Value = ((string)(Адрес));
  3890. }
  3891. if ((Телефон == null)) {
  3892. throw new global::System.ArgumentNullException("Телефон");
  3893. }
  3894. else {
  3895. this.Adapter.UpdateCommand.Parameters[5].Value = ((string)(Телефон));
  3896. }
  3897. this.Adapter.UpdateCommand.Parameters[6].Value = ((int)(Original_Номер_читателя));
  3898. if ((Original_Телефон == null)) {
  3899. throw new global::System.ArgumentNullException("Original_Телефон");
  3900. }
  3901. else {
  3902. this.Adapter.UpdateCommand.Parameters[7].Value = ((string)(Original_Телефон));
  3903. }
  3904. global::System.Data.ConnectionState previousConnectionState = this.Adapter.UpdateCommand.Connection.State;
  3905. if (((this.Adapter.UpdateCommand.Connection.State & global::System.Data.ConnectionState.Open)
  3906. != global::System.Data.ConnectionState.Open)) {
  3907. this.Adapter.UpdateCommand.Connection.Open();
  3908. }
  3909. try {
  3910. int returnValue = this.Adapter.UpdateCommand.ExecuteNonQuery();
  3911. return returnValue;
  3912. }
  3913. finally {
  3914. if ((previousConnectionState == global::System.Data.ConnectionState.Closed)) {
  3915. this.Adapter.UpdateCommand.Connection.Close();
  3916. }
  3917. }
  3918. }
  3919. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3920. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3921. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapter")]
  3922. [global::System.ComponentModel.DataObjectMethodAttribute(global::System.ComponentModel.DataObjectMethodType.Update, true)]
  3923. public virtual int Update(string Фамилия, string Имя, string Отчество, string Адрес, string Телефон, int Original_Номер_читателя, string Original_Телефон) {
  3924. return this.Update(Original_Номер_читателя, Фамилия, Имя, Отчество, Адрес, Телефон, Original_Номер_читателя, Original_Телефон);
  3925. }
  3926. }
  3927. /// <summary>
  3928. ///TableAdapterManager is used to coordinate TableAdapters in the dataset to enable Hierarchical Update scenarios
  3929. ///</summary>
  3930. [global::System.ComponentModel.DesignerCategoryAttribute("code")]
  3931. [global::System.ComponentModel.ToolboxItem(true)]
  3932. [global::System.ComponentModel.DesignerAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerDesigner, Microsoft.VSD" +
  3933. "esigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")]
  3934. [global::System.ComponentModel.Design.HelpKeywordAttribute("vs.data.TableAdapterManager")]
  3935. public partial class TableAdapterManager : global::System.ComponentModel.Component {
  3936. private UpdateOrderOption _updateOrder;
  3937. private БиблиотекарьTableAdapter _библиотекарьTableAdapter;
  3938. private ВыдачаTableAdapter _выдачаTableAdapter;
  3939. private ЗалTableAdapter _залTableAdapter;
  3940. private КнигаTableAdapter _книгаTableAdapter;
  3941. private ЧитательTableAdapter _читательTableAdapter;
  3942. private bool _backupDataSetBeforeUpdate;
  3943. private global::System.Data.IDbConnection _connection;
  3944. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3945. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3946. public UpdateOrderOption UpdateOrder {
  3947. get {
  3948. return this._updateOrder;
  3949. }
  3950. set {
  3951. this._updateOrder = value;
  3952. }
  3953. }
  3954. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3955. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3956. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3957. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3958. "a", "System.Drawing.Design.UITypeEditor")]
  3959. public БиблиотекарьTableAdapter БиблиотекарьTableAdapter {
  3960. get {
  3961. return this._библиотекарьTableAdapter;
  3962. }
  3963. set {
  3964. this._библиотекарьTableAdapter = value;
  3965. }
  3966. }
  3967. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3968. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3969. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3970. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3971. "a", "System.Drawing.Design.UITypeEditor")]
  3972. public ВыдачаTableAdapter ВыдачаTableAdapter {
  3973. get {
  3974. return this._выдачаTableAdapter;
  3975. }
  3976. set {
  3977. this._выдачаTableAdapter = value;
  3978. }
  3979. }
  3980. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3981. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3982. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3983. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3984. "a", "System.Drawing.Design.UITypeEditor")]
  3985. public ЗалTableAdapter ЗалTableAdapter {
  3986. get {
  3987. return this._залTableAdapter;
  3988. }
  3989. set {
  3990. this._залTableAdapter = value;
  3991. }
  3992. }
  3993. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  3994. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  3995. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  3996. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  3997. "a", "System.Drawing.Design.UITypeEditor")]
  3998. public КнигаTableAdapter КнигаTableAdapter {
  3999. get {
  4000. return this._книгаTableAdapter;
  4001. }
  4002. set {
  4003. this._книгаTableAdapter = value;
  4004. }
  4005. }
  4006. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4007. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4008. [global::System.ComponentModel.EditorAttribute("Microsoft.VSDesigner.DataSource.Design.TableAdapterManagerPropertyEditor, Microso" +
  4009. "ft.VSDesigner, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3" +
  4010. "a", "System.Drawing.Design.UITypeEditor")]
  4011. public ЧитательTableAdapter ЧитательTableAdapter {
  4012. get {
  4013. return this._читательTableAdapter;
  4014. }
  4015. set {
  4016. this._читательTableAdapter = value;
  4017. }
  4018. }
  4019. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4020. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4021. public bool BackupDataSetBeforeUpdate {
  4022. get {
  4023. return this._backupDataSetBeforeUpdate;
  4024. }
  4025. set {
  4026. this._backupDataSetBeforeUpdate = value;
  4027. }
  4028. }
  4029. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4030. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4031. [global::System.ComponentModel.Browsable(false)]
  4032. public global::System.Data.IDbConnection Connection {
  4033. get {
  4034. if ((this._connection != null)) {
  4035. return this._connection;
  4036. }
  4037. if (((this._библиотекарьTableAdapter != null)
  4038. && (this._библиотекарьTableAdapter.Connection != null))) {
  4039. return this._библиотекарьTableAdapter.Connection;
  4040. }
  4041. if (((this._выдачаTableAdapter != null)
  4042. && (this._выдачаTableAdapter.Connection != null))) {
  4043. return this._выдачаTableAdapter.Connection;
  4044. }
  4045. if (((this._залTableAdapter != null)
  4046. && (this._залTableAdapter.Connection != null))) {
  4047. return this._залTableAdapter.Connection;
  4048. }
  4049. if (((this._книгаTableAdapter != null)
  4050. && (this._книгаTableAdapter.Connection != null))) {
  4051. return this._книгаTableAdapter.Connection;
  4052. }
  4053. if (((this._читательTableAdapter != null)
  4054. && (this._читательTableAdapter.Connection != null))) {
  4055. return this._читательTableAdapter.Connection;
  4056. }
  4057. return null;
  4058. }
  4059. set {
  4060. this._connection = value;
  4061. }
  4062. }
  4063. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4064. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4065. [global::System.ComponentModel.Browsable(false)]
  4066. public int TableAdapterInstanceCount {
  4067. get {
  4068. int count = 0;
  4069. if ((this._библиотекарьTableAdapter != null)) {
  4070. count = (count + 1);
  4071. }
  4072. if ((this._выдачаTableAdapter != null)) {
  4073. count = (count + 1);
  4074. }
  4075. if ((this._залTableAdapter != null)) {
  4076. count = (count + 1);
  4077. }
  4078. if ((this._книгаTableAdapter != null)) {
  4079. count = (count + 1);
  4080. }
  4081. if ((this._читательTableAdapter != null)) {
  4082. count = (count + 1);
  4083. }
  4084. return count;
  4085. }
  4086. }
  4087. /// <summary>
  4088. ///Update rows in top-down order.
  4089. ///</summary>
  4090. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4091. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4092. private int UpdateUpdatedRows(_LesnichukEvgenuiAleksandrovich_19DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4093. int result = 0;
  4094. if ((this._библиотекарьTableAdapter != null)) {
  4095. global::System.Data.DataRow[] updatedRows = dataSet.Библиотекарь.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4096. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4097. if (((updatedRows != null)
  4098. && (0 < updatedRows.Length))) {
  4099. result = (result + this._библиотекарьTableAdapter.Update(updatedRows));
  4100. allChangedRows.AddRange(updatedRows);
  4101. }
  4102. }
  4103. if ((this._залTableAdapter != null)) {
  4104. global::System.Data.DataRow[] updatedRows = dataSet.Зал.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4105. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4106. if (((updatedRows != null)
  4107. && (0 < updatedRows.Length))) {
  4108. result = (result + this._залTableAdapter.Update(updatedRows));
  4109. allChangedRows.AddRange(updatedRows);
  4110. }
  4111. }
  4112. if ((this._книгаTableAdapter != null)) {
  4113. global::System.Data.DataRow[] updatedRows = dataSet.Книга.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4114. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4115. if (((updatedRows != null)
  4116. && (0 < updatedRows.Length))) {
  4117. result = (result + this._книгаTableAdapter.Update(updatedRows));
  4118. allChangedRows.AddRange(updatedRows);
  4119. }
  4120. }
  4121. if ((this._читательTableAdapter != null)) {
  4122. global::System.Data.DataRow[] updatedRows = dataSet.Читатель.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4123. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4124. if (((updatedRows != null)
  4125. && (0 < updatedRows.Length))) {
  4126. result = (result + this._читательTableAdapter.Update(updatedRows));
  4127. allChangedRows.AddRange(updatedRows);
  4128. }
  4129. }
  4130. if ((this._выдачаTableAdapter != null)) {
  4131. global::System.Data.DataRow[] updatedRows = dataSet.Выдача.Select(null, null, global::System.Data.DataViewRowState.ModifiedCurrent);
  4132. updatedRows = this.GetRealUpdatedRows(updatedRows, allAddedRows);
  4133. if (((updatedRows != null)
  4134. && (0 < updatedRows.Length))) {
  4135. result = (result + this._выдачаTableAdapter.Update(updatedRows));
  4136. allChangedRows.AddRange(updatedRows);
  4137. }
  4138. }
  4139. return result;
  4140. }
  4141. /// <summary>
  4142. ///Insert rows in top-down order.
  4143. ///</summary>
  4144. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4145. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4146. private int UpdateInsertedRows(_LesnichukEvgenuiAleksandrovich_19DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4147. int result = 0;
  4148. if ((this._библиотекарьTableAdapter != null)) {
  4149. global::System.Data.DataRow[] addedRows = dataSet.Библиотекарь.Select(null, null, global::System.Data.DataViewRowState.Added);
  4150. if (((addedRows != null)
  4151. && (0 < addedRows.Length))) {
  4152. result = (result + this._библиотекарьTableAdapter.Update(addedRows));
  4153. allAddedRows.AddRange(addedRows);
  4154. }
  4155. }
  4156. if ((this._залTableAdapter != null)) {
  4157. global::System.Data.DataRow[] addedRows = dataSet.Зал.Select(null, null, global::System.Data.DataViewRowState.Added);
  4158. if (((addedRows != null)
  4159. && (0 < addedRows.Length))) {
  4160. result = (result + this._залTableAdapter.Update(addedRows));
  4161. allAddedRows.AddRange(addedRows);
  4162. }
  4163. }
  4164. if ((this._книгаTableAdapter != null)) {
  4165. global::System.Data.DataRow[] addedRows = dataSet.Книга.Select(null, null, global::System.Data.DataViewRowState.Added);
  4166. if (((addedRows != null)
  4167. && (0 < addedRows.Length))) {
  4168. result = (result + this._книгаTableAdapter.Update(addedRows));
  4169. allAddedRows.AddRange(addedRows);
  4170. }
  4171. }
  4172. if ((this._читательTableAdapter != null)) {
  4173. global::System.Data.DataRow[] addedRows = dataSet.Читатель.Select(null, null, global::System.Data.DataViewRowState.Added);
  4174. if (((addedRows != null)
  4175. && (0 < addedRows.Length))) {
  4176. result = (result + this._читательTableAdapter.Update(addedRows));
  4177. allAddedRows.AddRange(addedRows);
  4178. }
  4179. }
  4180. if ((this._выдачаTableAdapter != null)) {
  4181. global::System.Data.DataRow[] addedRows = dataSet.Выдача.Select(null, null, global::System.Data.DataViewRowState.Added);
  4182. if (((addedRows != null)
  4183. && (0 < addedRows.Length))) {
  4184. result = (result + this._выдачаTableAdapter.Update(addedRows));
  4185. allAddedRows.AddRange(addedRows);
  4186. }
  4187. }
  4188. return result;
  4189. }
  4190. /// <summary>
  4191. ///Delete rows in bottom-up order.
  4192. ///</summary>
  4193. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4194. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4195. private int UpdateDeletedRows(_LesnichukEvgenuiAleksandrovich_19DataSet dataSet, global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows) {
  4196. int result = 0;
  4197. if ((this._выдачаTableAdapter != null)) {
  4198. global::System.Data.DataRow[] deletedRows = dataSet.Выдача.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4199. if (((deletedRows != null)
  4200. && (0 < deletedRows.Length))) {
  4201. result = (result + this._выдачаTableAdapter.Update(deletedRows));
  4202. allChangedRows.AddRange(deletedRows);
  4203. }
  4204. }
  4205. if ((this._читательTableAdapter != null)) {
  4206. global::System.Data.DataRow[] deletedRows = dataSet.Читатель.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4207. if (((deletedRows != null)
  4208. && (0 < deletedRows.Length))) {
  4209. result = (result + this._читательTableAdapter.Update(deletedRows));
  4210. allChangedRows.AddRange(deletedRows);
  4211. }
  4212. }
  4213. if ((this._книгаTableAdapter != null)) {
  4214. global::System.Data.DataRow[] deletedRows = dataSet.Книга.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4215. if (((deletedRows != null)
  4216. && (0 < deletedRows.Length))) {
  4217. result = (result + this._книгаTableAdapter.Update(deletedRows));
  4218. allChangedRows.AddRange(deletedRows);
  4219. }
  4220. }
  4221. if ((this._залTableAdapter != null)) {
  4222. global::System.Data.DataRow[] deletedRows = dataSet.Зал.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4223. if (((deletedRows != null)
  4224. && (0 < deletedRows.Length))) {
  4225. result = (result + this._залTableAdapter.Update(deletedRows));
  4226. allChangedRows.AddRange(deletedRows);
  4227. }
  4228. }
  4229. if ((this._библиотекарьTableAdapter != null)) {
  4230. global::System.Data.DataRow[] deletedRows = dataSet.Библиотекарь.Select(null, null, global::System.Data.DataViewRowState.Deleted);
  4231. if (((deletedRows != null)
  4232. && (0 < deletedRows.Length))) {
  4233. result = (result + this._библиотекарьTableAdapter.Update(deletedRows));
  4234. allChangedRows.AddRange(deletedRows);
  4235. }
  4236. }
  4237. return result;
  4238. }
  4239. /// <summary>
  4240. ///Remove inserted rows that become updated rows after calling TableAdapter.Update(inserted rows) first
  4241. ///</summary>
  4242. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4243. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4244. private global::System.Data.DataRow[] GetRealUpdatedRows(global::System.Data.DataRow[] updatedRows, global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows) {
  4245. if (((updatedRows == null)
  4246. || (updatedRows.Length < 1))) {
  4247. return updatedRows;
  4248. }
  4249. if (((allAddedRows == null)
  4250. || (allAddedRows.Count < 1))) {
  4251. return updatedRows;
  4252. }
  4253. global::System.Collections.Generic.List<global::System.Data.DataRow> realUpdatedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4254. for (int i = 0; (i < updatedRows.Length); i = (i + 1)) {
  4255. global::System.Data.DataRow row = updatedRows[i];
  4256. if ((allAddedRows.Contains(row) == false)) {
  4257. realUpdatedRows.Add(row);
  4258. }
  4259. }
  4260. return realUpdatedRows.ToArray();
  4261. }
  4262. /// <summary>
  4263. ///Update all changes to the dataset.
  4264. ///</summary>
  4265. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4266. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4267. public virtual int UpdateAll(_LesnichukEvgenuiAleksandrovich_19DataSet dataSet) {
  4268. if ((dataSet == null)) {
  4269. throw new global::System.ArgumentNullException("dataSet");
  4270. }
  4271. if ((dataSet.HasChanges() == false)) {
  4272. return 0;
  4273. }
  4274. if (((this._библиотекарьTableAdapter != null)
  4275. && (this.MatchTableAdapterConnection(this._библиотекарьTableAdapter.Connection) == false))) {
  4276. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4277. "r, должны использовать одинаковую строку подключения.");
  4278. }
  4279. if (((this._выдачаTableAdapter != null)
  4280. && (this.MatchTableAdapterConnection(this._выдачаTableAdapter.Connection) == false))) {
  4281. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4282. "r, должны использовать одинаковую строку подключения.");
  4283. }
  4284. if (((this._залTableAdapter != null)
  4285. && (this.MatchTableAdapterConnection(this._залTableAdapter.Connection) == false))) {
  4286. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4287. "r, должны использовать одинаковую строку подключения.");
  4288. }
  4289. if (((this._книгаTableAdapter != null)
  4290. && (this.MatchTableAdapterConnection(this._книгаTableAdapter.Connection) == false))) {
  4291. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4292. "r, должны использовать одинаковую строку подключения.");
  4293. }
  4294. if (((this._читательTableAdapter != null)
  4295. && (this.MatchTableAdapterConnection(this._читательTableAdapter.Connection) == false))) {
  4296. throw new global::System.ArgumentException("Все адаптеры таблицы, управляемые диспетчером адаптера таблицы TableAdapterManage" +
  4297. "r, должны использовать одинаковую строку подключения.");
  4298. }
  4299. global::System.Data.IDbConnection workConnection = this.Connection;
  4300. if ((workConnection == null)) {
  4301. throw new global::System.ApplicationException("TableAdapterManager не содержит сведений о подключении. Укажите для каждого адапт" +
  4302. "ера таблицы TableAdapterManager допустимый экземпляр адаптера таблицы.");
  4303. }
  4304. bool workConnOpened = false;
  4305. if (((workConnection.State & global::System.Data.ConnectionState.Broken)
  4306. == global::System.Data.ConnectionState.Broken)) {
  4307. workConnection.Close();
  4308. }
  4309. if ((workConnection.State == global::System.Data.ConnectionState.Closed)) {
  4310. workConnection.Open();
  4311. workConnOpened = true;
  4312. }
  4313. global::System.Data.IDbTransaction workTransaction = workConnection.BeginTransaction();
  4314. if ((workTransaction == null)) {
  4315. throw new global::System.ApplicationException("Не удается начать транзакцию. Текущее соединение данных не поддерживает транзакци" +
  4316. "и или текущее состояние не позволяет начать транзакцию.");
  4317. }
  4318. global::System.Collections.Generic.List<global::System.Data.DataRow> allChangedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4319. global::System.Collections.Generic.List<global::System.Data.DataRow> allAddedRows = new global::System.Collections.Generic.List<global::System.Data.DataRow>();
  4320. global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter> adaptersWithAcceptChangesDuringUpdate = new global::System.Collections.Generic.List<global::System.Data.Common.DataAdapter>();
  4321. global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection> revertConnections = new global::System.Collections.Generic.Dictionary<object, global::System.Data.IDbConnection>();
  4322. int result = 0;
  4323. global::System.Data.DataSet backupDataSet = null;
  4324. if (this.BackupDataSetBeforeUpdate) {
  4325. backupDataSet = new global::System.Data.DataSet();
  4326. backupDataSet.Merge(dataSet);
  4327. }
  4328. try {
  4329. // ---- Prepare for update -----------
  4330. //
  4331. if ((this._библиотекарьTableAdapter != null)) {
  4332. revertConnections.Add(this._библиотекарьTableAdapter, this._библиотекарьTableAdapter.Connection);
  4333. this._библиотекарьTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4334. this._библиотекарьTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4335. if (this._библиотекарьTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4336. this._библиотекарьTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4337. adaptersWithAcceptChangesDuringUpdate.Add(this._библиотекарьTableAdapter.Adapter);
  4338. }
  4339. }
  4340. if ((this._выдачаTableAdapter != null)) {
  4341. revertConnections.Add(this._выдачаTableAdapter, this._выдачаTableAdapter.Connection);
  4342. this._выдачаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4343. this._выдачаTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4344. if (this._выдачаTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4345. this._выдачаTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4346. adaptersWithAcceptChangesDuringUpdate.Add(this._выдачаTableAdapter.Adapter);
  4347. }
  4348. }
  4349. if ((this._залTableAdapter != null)) {
  4350. revertConnections.Add(this._залTableAdapter, this._залTableAdapter.Connection);
  4351. this._залTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4352. this._залTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4353. if (this._залTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4354. this._залTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4355. adaptersWithAcceptChangesDuringUpdate.Add(this._залTableAdapter.Adapter);
  4356. }
  4357. }
  4358. if ((this._книгаTableAdapter != null)) {
  4359. revertConnections.Add(this._книгаTableAdapter, this._книгаTableAdapter.Connection);
  4360. this._книгаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4361. this._книгаTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4362. if (this._книгаTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4363. this._книгаTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4364. adaptersWithAcceptChangesDuringUpdate.Add(this._книгаTableAdapter.Adapter);
  4365. }
  4366. }
  4367. if ((this._читательTableAdapter != null)) {
  4368. revertConnections.Add(this._читательTableAdapter, this._читательTableAdapter.Connection);
  4369. this._читательTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(workConnection));
  4370. this._читательTableAdapter.Transaction = ((global::System.Data.SqlClient.SqlTransaction)(workTransaction));
  4371. if (this._читательTableAdapter.Adapter.AcceptChangesDuringUpdate) {
  4372. this._читательTableAdapter.Adapter.AcceptChangesDuringUpdate = false;
  4373. adaptersWithAcceptChangesDuringUpdate.Add(this._читательTableAdapter.Adapter);
  4374. }
  4375. }
  4376. //
  4377. //---- Perform updates -----------
  4378. //
  4379. if ((this.UpdateOrder == UpdateOrderOption.UpdateInsertDelete)) {
  4380. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  4381. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  4382. }
  4383. else {
  4384. result = (result + this.UpdateInsertedRows(dataSet, allAddedRows));
  4385. result = (result + this.UpdateUpdatedRows(dataSet, allChangedRows, allAddedRows));
  4386. }
  4387. result = (result + this.UpdateDeletedRows(dataSet, allChangedRows));
  4388. //
  4389. //---- Commit updates -----------
  4390. //
  4391. workTransaction.Commit();
  4392. if ((0 < allAddedRows.Count)) {
  4393. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  4394. allAddedRows.CopyTo(rows);
  4395. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4396. global::System.Data.DataRow row = rows[i];
  4397. row.AcceptChanges();
  4398. }
  4399. }
  4400. if ((0 < allChangedRows.Count)) {
  4401. global::System.Data.DataRow[] rows = new System.Data.DataRow[allChangedRows.Count];
  4402. allChangedRows.CopyTo(rows);
  4403. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4404. global::System.Data.DataRow row = rows[i];
  4405. row.AcceptChanges();
  4406. }
  4407. }
  4408. }
  4409. catch (global::System.Exception ex) {
  4410. workTransaction.Rollback();
  4411. // ---- Restore the dataset -----------
  4412. if (this.BackupDataSetBeforeUpdate) {
  4413. global::System.Diagnostics.Debug.Assert((backupDataSet != null));
  4414. dataSet.Clear();
  4415. dataSet.Merge(backupDataSet);
  4416. }
  4417. else {
  4418. if ((0 < allAddedRows.Count)) {
  4419. global::System.Data.DataRow[] rows = new System.Data.DataRow[allAddedRows.Count];
  4420. allAddedRows.CopyTo(rows);
  4421. for (int i = 0; (i < rows.Length); i = (i + 1)) {
  4422. global::System.Data.DataRow row = rows[i];
  4423. row.AcceptChanges();
  4424. row.SetAdded();
  4425. }
  4426. }
  4427. }
  4428. throw ex;
  4429. }
  4430. finally {
  4431. if (workConnOpened) {
  4432. workConnection.Close();
  4433. }
  4434. if ((this._библиотекарьTableAdapter != null)) {
  4435. this._библиотекарьTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._библиотекарьTableAdapter]));
  4436. this._библиотекарьTableAdapter.Transaction = null;
  4437. }
  4438. if ((this._выдачаTableAdapter != null)) {
  4439. this._выдачаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._выдачаTableAdapter]));
  4440. this._выдачаTableAdapter.Transaction = null;
  4441. }
  4442. if ((this._залTableAdapter != null)) {
  4443. this._залTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._залTableAdapter]));
  4444. this._залTableAdapter.Transaction = null;
  4445. }
  4446. if ((this._книгаTableAdapter != null)) {
  4447. this._книгаTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._книгаTableAdapter]));
  4448. this._книгаTableAdapter.Transaction = null;
  4449. }
  4450. if ((this._читательTableAdapter != null)) {
  4451. this._читательTableAdapter.Connection = ((global::System.Data.SqlClient.SqlConnection)(revertConnections[this._читательTableAdapter]));
  4452. this._читательTableAdapter.Transaction = null;
  4453. }
  4454. if ((0 < adaptersWithAcceptChangesDuringUpdate.Count)) {
  4455. global::System.Data.Common.DataAdapter[] adapters = new System.Data.Common.DataAdapter[adaptersWithAcceptChangesDuringUpdate.Count];
  4456. adaptersWithAcceptChangesDuringUpdate.CopyTo(adapters);
  4457. for (int i = 0; (i < adapters.Length); i = (i + 1)) {
  4458. global::System.Data.Common.DataAdapter adapter = adapters[i];
  4459. adapter.AcceptChangesDuringUpdate = true;
  4460. }
  4461. }
  4462. }
  4463. return result;
  4464. }
  4465. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4466. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4467. protected virtual void SortSelfReferenceRows(global::System.Data.DataRow[] rows, global::System.Data.DataRelation relation, bool childFirst) {
  4468. global::System.Array.Sort<global::System.Data.DataRow>(rows, new SelfReferenceComparer(relation, childFirst));
  4469. }
  4470. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4471. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4472. protected virtual bool MatchTableAdapterConnection(global::System.Data.IDbConnection inputConnection) {
  4473. if ((this._connection != null)) {
  4474. return true;
  4475. }
  4476. if (((this.Connection == null)
  4477. || (inputConnection == null))) {
  4478. return true;
  4479. }
  4480. if (string.Equals(this.Connection.ConnectionString, inputConnection.ConnectionString, global::System.StringComparison.Ordinal)) {
  4481. return true;
  4482. }
  4483. return false;
  4484. }
  4485. /// <summary>
  4486. ///Update Order Option
  4487. ///</summary>
  4488. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4489. public enum UpdateOrderOption {
  4490. InsertUpdateDelete = 0,
  4491. UpdateInsertDelete = 1,
  4492. }
  4493. /// <summary>
  4494. ///Used to sort self-referenced table's rows
  4495. ///</summary>
  4496. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4497. private class SelfReferenceComparer : object, global::System.Collections.Generic.IComparer<global::System.Data.DataRow> {
  4498. private global::System.Data.DataRelation _relation;
  4499. private int _childFirst;
  4500. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4501. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4502. internal SelfReferenceComparer(global::System.Data.DataRelation relation, bool childFirst) {
  4503. this._relation = relation;
  4504. if (childFirst) {
  4505. this._childFirst = -1;
  4506. }
  4507. else {
  4508. this._childFirst = 1;
  4509. }
  4510. }
  4511. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4512. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4513. private global::System.Data.DataRow GetRoot(global::System.Data.DataRow row, out int distance) {
  4514. global::System.Diagnostics.Debug.Assert((row != null));
  4515. global::System.Data.DataRow root = row;
  4516. distance = 0;
  4517. global::System.Collections.Generic.IDictionary<global::System.Data.DataRow, global::System.Data.DataRow> traversedRows = new global::System.Collections.Generic.Dictionary<global::System.Data.DataRow, global::System.Data.DataRow>();
  4518. traversedRows[row] = row;
  4519. global::System.Data.DataRow parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  4520. for (
  4521. ; ((parent != null)
  4522. && (traversedRows.ContainsKey(parent) == false));
  4523. ) {
  4524. distance = (distance + 1);
  4525. root = parent;
  4526. traversedRows[parent] = parent;
  4527. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Default);
  4528. }
  4529. if ((distance == 0)) {
  4530. traversedRows.Clear();
  4531. traversedRows[row] = row;
  4532. parent = row.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  4533. for (
  4534. ; ((parent != null)
  4535. && (traversedRows.ContainsKey(parent) == false));
  4536. ) {
  4537. distance = (distance + 1);
  4538. root = parent;
  4539. traversedRows[parent] = parent;
  4540. parent = parent.GetParentRow(this._relation, global::System.Data.DataRowVersion.Original);
  4541. }
  4542. }
  4543. return root;
  4544. }
  4545. [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
  4546. [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Data.Design.TypedDataSetGenerator", "16.0.0.0")]
  4547. public int Compare(global::System.Data.DataRow row1, global::System.Data.DataRow row2) {
  4548. if (object.ReferenceEquals(row1, row2)) {
  4549. return 0;
  4550. }
  4551. if ((row1 == null)) {
  4552. return -1;
  4553. }
  4554. if ((row2 == null)) {
  4555. return 1;
  4556. }
  4557. int distance1 = 0;
  4558. global::System.Data.DataRow root1 = this.GetRoot(row1, out distance1);
  4559. int distance2 = 0;
  4560. global::System.Data.DataRow root2 = this.GetRoot(row2, out distance2);
  4561. if (object.ReferenceEquals(root1, root2)) {
  4562. return (this._childFirst * distance1.CompareTo(distance2));
  4563. }
  4564. else {
  4565. global::System.Diagnostics.Debug.Assert(((root1.Table != null)
  4566. && (root2.Table != null)));
  4567. if ((root1.Table.Rows.IndexOf(root1) < root2.Table.Rows.IndexOf(root2))) {
  4568. return -1;
  4569. }
  4570. else {
  4571. return 1;
  4572. }
  4573. }
  4574. }
  4575. }
  4576. }
  4577. }
  4578. #pragma warning restore 1591