_Ogurchenok_11DataSet.Designer.cs 299 KB

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